﻿.auth-page {
    position: relative;
    min-height: 780px;
    padding: 154px 24px 92px;
    overflow: hidden;
    background: radial-gradient(circle at 12% 20%, rgba(100, 103, 242, .1), transparent 32%), #f5f7fc;
    color: #202943;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: auto -10% -230px auto;
    width: 640px;
    height: 640px;
    border: 1px solid rgba(77, 85, 186, .08);
    border-radius: 50%;
    pointer-events: none;
}

.auth-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, .93fr);
    width: min(1060px, 100%);
    min-height: 580px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e4e8f3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(40, 50, 101, .12);
}

.auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 580px;
    padding: 39px 44px 34px;
    overflow: hidden;
    background: linear-gradient(147deg, #292a80 0%, #3e43af 51%, #6763d8 100%);
    color: #fff;
}

.auth-intro::before,
.auth-intro::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

.auth-intro::before {
    width: 540px;
    height: 540px;
    right: -330px;
    top: 85px;
}

.auth-intro::after {
    width: 365px;
    height: 365px;
    right: -160px;
    bottom: -205px;
    background: rgba(255, 255, 255, .045);
}

.auth-intro__top,
.auth-intro__body,
.auth-intro__footer {
    position: relative;
    z-index: 1;
}

.auth-intro__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.auth-intro__eyebrow,
.auth-intro__footer,
.auth-card__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
}

.auth-intro__eyebrow {
    color: rgba(255, 255, 255, .72);
}

.auth-intro__mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 13px;
    font-size: 22px;
}

.auth-intro__pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 100px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 600;
}

.auth-intro__pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b9f0d8;
    box-shadow: 0 0 0 4px rgba(185, 240, 216, .16);
}

.auth-intro h1 {
    margin: 24px 0 18px;
    color: #fff;
    font-size: clamp(31px, 3.2vw, 43px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.05em;
}

.auth-intro p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    line-height: 1.85;
}

.auth-intro__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .54);
    font-size: 9px;
}

.auth-intro__line {
    width: 27px;
    height: 1px;
    background: rgba(255, 255, 255, .5);
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px clamp(36px, 5vw, 69px) 37px;
}

.auth-card__eyebrow {
    color: #5a5af3;
}

.auth-card__header h2 {
    margin: 10px 0 8px;
    color: #1d2540;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -.06em;
}

.auth-card__header p {
    min-height: 44px;
    margin: 0;
    color: #737d90;
    font-size: 13px;
    line-height: 1.7;
}

.auth-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin: 25px 0 28px;
    padding: 0;
    list-style: none;
}

.auth-steps li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #a4adbd;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.auth-steps li + li::before {
    content: "";
    width: clamp(10px, 2vw, 28px);
    height: 1px;
    margin-right: 3px;
    background: #dce1ec;
}

.auth-steps__number {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid #e0e5ee;
    border-radius: 50%;
    font-size: 10px;
}

.auth-steps li.is-active {
    color: #3b3da6;
}

.auth-steps li.is-active .auth-steps__number {
    border-color: #5656d9;
    background: #5656d9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(86, 86, 217, .25);
}

.auth-steps li.is-done {
    color: #7379aa;
}

.auth-steps li.is-done .auth-steps__number {
    border-color: #dbddfa;
    background: #eeefff;
    color: #5053ba;
}

.auth-feedback {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #f7d8d8;
    border-radius: 10px;
    background: #fff6f6;
    color: #ae3c48;
    font-size: 12px;
    line-height: 1.55;
}

.auth-feedback--info {
    border-color: #dce1fa;
    background: #f6f7ff;
    color: #434c9a;
}

.auth-feedback i {
    margin-top: 1px;
    font-size: 15px;
}

.auth-form {
    width: 100%;
}

.auth-field {
    margin-bottom: 19px;
}

.auth-field label,
.auth-form__label {
    display: block;
    margin: 0 0 9px;
    color: #303a52;
    font-size: 13px;
    font-weight: 700;
}

.auth-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #dce2ec;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #242d46;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input::placeholder {
    color: #a6aebe;
}

.auth-input:focus {
    border-color: #6866df;
    box-shadow: 0 0 0 4px rgba(104, 102, 223, .11);
}

.auth-password {
    position: relative;
}

.auth-password .auth-input {
    padding-right: 74px;
}

.auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #68728a;
    font-size: 12px;
    font-weight: 700;
}

.auth-password__toggle:hover {
    background: #f1f2fb;
    color: #3e43ad;
}

.auth-button {
    cursor: pointer;
    font-family: inherit;
}

.auth-button--primary {
    display: block;
    width: 100%;
    min-height: 52px;
    margin-top: 27px;
    border: 1px solid #4b4ec5;
    border-radius: 9px;
    background: #4b4ec5;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s, box-shadow .2s, transform .2s;
}

.auth-button--primary:hover {
    background: #393dae;
    box-shadow: 0 8px 18px rgba(62, 67, 173, .2);
    transform: translateY(-1px);
}

.auth-button--primary:disabled {
    cursor: not-allowed;
    border-color: #aeb5cb;
    background: #aeb5cb;
    box-shadow: none;
    transform: none;
}

.auth-button--text {
    padding: 8px;
    border: 0;
    background: transparent;
    color: #626d84;
    font-size: 12px;
    font-weight: 700;
}

.auth-button--text:hover,
.auth-links a:hover {
    color: #4448bc;
    text-decoration: underline;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 21px;
    font-size: 12px;
}

.auth-links a {
    color: #606b83;
    font-weight: 600;
}

.auth-links__divider {
    padding: 0 9px;
    color: #bec5d3;
}

.auth-links .bi {
    font-size: 11px;
}

.auth-choices {
    display: grid;
    gap: 11px;
    margin-bottom: 5px;
}

.auth-choice {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 76px;
    padding: 15px 16px 14px;
    border: 1px solid #dce2ec;
    border-radius: 11px;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.auth-choice:hover {
    border-color: #a3a5e8;
}

.auth-choice.is-selected {
    border-color: #6565d8;
    background: #f8f8ff;
    box-shadow: 0 0 0 3px rgba(101, 101, 216, .08);
}

.auth-choice.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    background: #f8f9fc;
}

.auth-choice__main {
    grid-column: 1;
    grid-row: 1;
    color: #29334a;
    font-size: 14px;
    font-weight: 700;
}

.auth-choice__main {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.auth-choice__main > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.auth-choice input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #5556d1;
}

.auth-choice label {
    cursor: inherit;
}

.auth-choice__icon {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 9px;
    background: #f0f1fa;
    color: #6168bd;
    font-size: 17px;
}

.auth-choice__detail {
    grid-column: 1;
    grid-row: 2;
    margin: 5px 0 0 25px;
    color: #727d91;
    font-size: 12px;
}

.auth-choice:focus-within {
    outline: 3px solid rgba(86, 86, 217, .22);
    outline-offset: 2px;
}

.auth-form > .auth-button--text {
    display: block;
    margin: 12px auto 0;
}

.auth-otp-destination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 15px;
    border: 1px solid #e5e8f5;
    border-radius: 11px;
    background: #f8f9ff;
}

.auth-otp-destination__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 9px;
    background: #e8eaff;
    color: #4c50bb;
    font-size: 18px;
}

.auth-otp-destination p {
    margin: 0;
    color: #4c5871;
    font-size: 12px;
    line-height: 1.6;
}

.auth-input--otp {
    height: 62px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .38em;
    font-variant-numeric: tabular-nums;
}

.auth-input--otp::placeholder {
    color: #cbd0df;
}

.auth-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: #79849a;
    font-size: 12px;
}

.auth-timer strong {
    color: #4b4ec5;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.auth-otp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    color: #c3c8d5;
}

.auth-card__help {
    margin: auto 0 0;
    padding-top: 38px;
    color: #9ca6b6;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr) minmax(410px, 1fr);
    }
    .auth-intro {
        padding: 34px 30px;
    }
    .auth-card {
        padding-right: 34px;
        padding-left: 34px;
    }
}

@media (max-width: 760px) {
    .auth-page {
        min-height: auto;
        padding: 125px 16px 54px;
    }
    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
    .auth-intro {
        min-height: 162px;
        padding: 24px 27px;
    }
    .auth-intro__top,
    .auth-intro__footer,
    .auth-intro h1,
    .auth-intro p {
        display: none;
    }
    .auth-intro__body {
        margin: auto 0;
    }
    .auth-intro__pill {
        margin-bottom: 12px;
    }
    .auth-intro__body::after {
        content: "지원 정보를 안전하게 관리하세요.";
        display: block;
        color: rgba(255, 255, 255, .86);
        font-size: 16px;
        font-weight: 600;
    }
    .auth-card {
        min-height: 470px;
        padding: 35px 30px 28px;
    }
    .auth-card__help {
        padding-top: 30px;
    }
}

@media (max-width: 420px) {
    .auth-page {
        padding-right: 12px;
        padding-left: 12px;
    }
    .auth-card {
        padding-right: 22px;
        padding-left: 22px;
    }
    .auth-steps li {
        gap: 4px;
        font-size: 10px;
    }
    .auth-steps li + li::before {
        width: 8px;
        margin-right: 1px;
    }
    .auth-links {
        flex-wrap: wrap;
    }
}
