/* ==========================================================================
   METIVATOR — Auth pages (signin · signup · verify)
   pie3d AuthLayout + AuthStyle + SignUpInSwitch → 정적 CSS
   ========================================================================== */

/* === Layout: 좌(welcome) | 우(form) ===================================== */
.auth-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    background-color: #f5f5f5;
}
@media screen and (max-width: 1000px) {
    .auth-layout {
        flex-direction: column-reverse;
    }
}

.auth-layout__welcome {
    width: 40%;
    min-width: 500px;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0 28px 80px;
}
@media screen and (max-width: 1000px) {
    .auth-layout__welcome {
        width: 100%;
        min-width: 100%;
        padding: 100px 0;
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: center;
    }
}
.auth-layout__logo--desktop {
    width: 420px;
    margin-bottom: 130px;
    display: flex;
    justify-content: flex-start;
}
.auth-layout__logo--desktop img { height: 32px; width: auto; }
@media screen and (max-width: 1000px) {
    .auth-layout__logo--desktop { display: none; }
}
.auth-layout__logo--mobile {
    display: none;
    margin: 12px 33px;
    width: 110px;
}
.auth-layout__logo--mobile img { height: 26px; width: auto; }
@media screen and (max-width: 1000px) {
    .auth-layout__logo--mobile { display: block; }
}
.auth-layout__welcome-image {
    width: 420px;
    height: auto;
    -webkit-user-drag: none;
}
@media screen and (max-width: 1000px) {
    .auth-layout__welcome-image { width: 277px; }
}
.auth-layout__welcome-message {
    margin: 55px 0 0;
    width: 420px;
    display: flex;
    justify-content: flex-start;
    font-size: 32px;
    font-weight: 400;
    line-height: 47px;
    letter-spacing: -0.02em;
}
@media screen and (max-width: 1000px) {
    .auth-layout__welcome-message {
        width: fit-content;
        font-size: 24px;
        line-height: 32px;
        text-align: center;
        margin: 0 0 25px;
    }
}

.auth-layout__form-box {
    width: 60%;
    background-color: #f6f6f6;
    min-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
@media screen and (max-width: 1000px) {
    .auth-layout__form-box {
        width: 100%;
        min-width: 100%;
        min-height: 100vh;
    }
}
.auth-layout__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}
.auth-layout__footer {
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 37px;
    margin-bottom: 12px;
}
@media screen and (max-width: 1000px) {
    .auth-layout__footer {
        width: 100%;
        margin-top: auto;
    }
}
.auth-layout__footer-link {
    color: #707070;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

/* === Form ============================================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 400px;
    max-width: 100%;
}
@media screen and (max-width: 780px) {
    .auth-form { width: 325px; }
}
@media screen and (max-width: 325px) {
    .auth-form { width: 280px; }
}
.auth-form__alert {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}
.auth-form__inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.auth-form__forgot {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 8px 10px 0 0;
}
.auth-form__forgot-link {
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: #707070;
}
.auth-form__forgot-link:hover { text-decoration: underline; }
.auth-form__submit {
    width: 100%;
    height: 54px;
    border-radius: 4px;
    margin-top: 22px;
    background-color: #ff8835;
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    color: #000000;
    border: none;
    cursor: pointer;
    transition: filter 0.15s;
}
.auth-form__submit:hover:not(:disabled) { filter: brightness(0.95); }
.auth-form__submit:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}
.auth-form__switch {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #303030;
    width: 100%;
}
.auth-form__switch-action {
    cursor: pointer;
    text-decoration: underline;
}

/* === Outlined-label input (원본 pie3d 패턴 그대로) ===================== */
.auth-input {
    position: relative;
    width: 100%;
    height: 48px;
}
.auth-input input {
    padding: 16px 23px;
    width: 100%;
    height: 50px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #000;
    border-radius: 3px;
    outline: none;
    background: #fff;
    font-family: inherit;
    color: #000;
}
.auth-input input::placeholder { color: transparent; }
.auth-input input:focus,
.auth-input input:not(:placeholder-shown) {
    border: 2px solid black;
}
.auth-input.is-error input {
    border: 2px solid #ef4444;
}
.auth-input label {
    transition: all 0.2s;
    pointer-events: none;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 1px 23px;
    color: #a2a2a2;
    font-size: 14px;
    font-weight: normal;
    background-color: #fff;
    transform: translate(2px, -15px);
}
.auth-input input:focus + label,
.auth-input input:not(:placeholder-shown) + label {
    color: black;
    font-size: 12px;
    padding: 1px 12px;
    transform: translate(5px, -38px);
}
.auth-input.is-error input:focus + label,
.auth-input.is-error input:not(:placeholder-shown) + label {
    color: #ef4444;
}
.auth-input__error {
    display: block;
    margin: 4px 4px 0;
    font-size: 11px;
    color: #ef4444;
}

/* === Verify (placeholder for Phase 3.B) ================================ */
.verify-page {
    max-width: 480px;
    margin: 80px auto;
    text-align: center;
    padding: 0 24px;
}
.verify-page__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}
.verify-page__desc {
    color: #707070;
    line-height: 1.6;
    margin-bottom: 32px;
}
