/* ===================== 로그인 · 회원가입 ===================== */
.auth {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 카드가 본문 최소 높이만큼 늘어나지 않도록 */
    padding-top: 48px;
    padding-bottom: 48px;
}

.auth__card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
}

.auth__title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.auth__desc { margin-top: 6px; color: var(--text-muted); font-size: 14px; }

.auth__alert {
    margin-top: 20px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 14px;
}
.auth__alert--error { background: var(--danger-soft); color: var(--danger); }

.auth__form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 오류가 없을 때는 오류 문구 자리를 차지하지 않는다 */
.auth__form .field__error:empty { display: none; }
/* 오류가 있으면 안내 문구 대신 오류 문구만 보여준다 */
.auth__form .field__hint:has(+ .field__error:not(:empty)) { display: none; }

.auth__submit { width: 100%; height: 44px; margin-top: 4px; font-size: 15px; }

.auth__switch {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}
.auth__switch a { color: var(--primary); font-weight: 700; }
.auth__switch a:hover { text-decoration: underline; }

@media (max-width: 520px) {
    .auth { padding-top: 24px; }
    .auth__card { padding: 24px 18px; }
}
