/* =========================================================
   Auth / Login
   ========================================================= */

.auth-section {
    padding: 46px 0 72px;
}

.auth-container {
    display: grid;
    grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
    gap: 88px;
    align-items: center;
}

.auth-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-card-head {
    margin-bottom: 28px;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}

.auth-card-head h1 {
    margin: 0;
    font-size: 33px;
    line-height: 1.25;
    letter-spacing: -.04em;
}

.auth-card-head p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 650;
}

.auth-alert-error {
    border: 1px solid color-mix(in srgb, #ef4444 32%, var(--line));
    background: color-mix(in srgb, #ef4444 10%, var(--surface));
    color: #dc2626;
}

html[data-theme="dark"] .auth-alert-error {
    color: #fca5a5;
}

.auth-form {
    display: grid;
    gap: 19px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label,
.form-label-row label {
    font-size: 15px;
    font-weight: 750;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-help-link {
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.form-control::placeholder {
    color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.form-control:hover {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 64px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    min-width: 48px;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}

.password-toggle:hover {
    background: var(--surface-2);
    color: var(--text);
}

.remember-row {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
}

.remember-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.auth-submit,
.auth-signup-button {
    width: 100%;
    min-height: 49px;
}

.auth-divider {
    position: relative;
    margin: 26px 0 16px;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--line);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 11px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
}

.auth-note {
    margin-top: 26px;
    padding: 15px 16px;
    border-radius: 12px;
    background: var(--surface-2);
}

.auth-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.auth-note p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.auth-side {
    max-width: 570px;
    padding: 20px 0;
}

.auth-side h2 {
    margin: 18px 0 18px;
    font-size: clamp(35px, 4vw, 51px);
    line-height: 1.18;
    letter-spacing: -.05em;
}

.auth-side > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.auth-side-points {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.auth-side-points > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-side-points strong {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
}

.auth-side-points span {
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .auth-section {
        padding-top: 34px;
    }

    .auth-container {
        grid-template-columns: minmax(0, 520px);
        justify-content: center;
        gap: 0;
    }

    .auth-side {
        display: none;
    }
}

@media (max-width: 560px) {
    .auth-section {
        padding: 22px 0 48px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .auth-card-head h1 {
        font-size: 29px;
    }
}


/* =========================================================
   넓게 보기 (1500px) - 로그인
   ========================================================= */
@media (min-width: 901px) {
    html[data-layout="wide"] .auth-container {
        grid-template-columns: minmax(440px, 520px) minmax(0, 1fr);
        gap: 104px;
    }

    html[data-layout="wide"] .auth-card {
        padding: 40px;
    }

    html[data-layout="wide"] .auth-form {
        gap: 21px;
    }

    html[data-layout="wide"] .form-group label,
    html[data-layout="wide"] .form-label-row label {
        font-size: 16px;
    }

    html[data-layout="wide"] .form-help-link,
    html[data-layout="wide"] .remember-row,
    html[data-layout="wide"] .auth-eyebrow {
        font-size: 15px;
    }

    html[data-layout="wide"] .form-control {
        min-height: 52px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 16px;
    }

    html[data-layout="wide"] .password-field .form-control {
        padding-right: 70px;
    }

    html[data-layout="wide"] .password-toggle {
        height: 38px;
        min-width: 52px;
        font-size: 14px;
    }

    html[data-layout="wide"] .auth-submit,
    html[data-layout="wide"] .auth-signup-button {
        min-height: 53px;
        font-size: 16px;
    }

    html[data-layout="wide"] .auth-note strong {
        font-size: 15px;
    }

    html[data-layout="wide"] .auth-note p,
    html[data-layout="wide"] .auth-divider span {
        font-size: 14px;
    }

    html[data-layout="wide"] .auth-side {
        max-width: 660px;
    }

    html[data-layout="wide"] .auth-side > p {
        max-width: 620px;
        font-size: 18px;
    }

    html[data-layout="wide"] .auth-side-points {
        gap: 16px;
    }
}

/* 회원탈퇴 완료 안내: 로그인 페이지 전용 성공 상태 */
.auth-alert-success {
    border-color: color-mix(in srgb, #16a34a 30%, var(--line));
    background: color-mix(in srgb, #16a34a 7%, var(--surface));
    color: color-mix(in srgb, #16a34a 82%, var(--text));
}
