/* ============================================================
   auth.css — 회원가입·로그인 페이지 공용
   common.css의 reset/header/푸터 위에 폼 카드만 스타일링.
   ============================================================ */

.auth-container {
    max-width: 420px;
    margin: 40px auto;
    padding: 32px 24px;
    background: #fff;
    border: 1px solid #e6e7e8;
    border-radius: 6px;
}

.auth-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.auth-lead {
    font-size: 13px;
    color: #8ba4b3;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ─────── 에러 박스 ─────── */
.auth-error {
    background: #ffeeed;
    border: 1px solid #fa5536;
    color: #c33020;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
    word-break: keep-all;
}

/* ─────── 폼 필드 ─────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field-label {
    font-size: 13px;
    font-weight: bold;
    color: #2c313d;
}
.field-optional {
    font-weight: normal;
    color: #8ba4b3;
    font-size: 12px;
    margin-left: 4px;
}
.field input {
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #d0d3d6;
    border-radius: 4px;
    background: #fff;
    color: #2c313d;
    font-family: inherit;
    letter-spacing: -0.3px;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.field input:focus {
    outline: none;
    border-color: #4f80ff;
    box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.15);
}
.field input:disabled {
    background: #f3f3f3;
    color: #8ba4b3;
}
.field-hint {
    font-size: 11px;
    color: #8ba4b3;
    line-height: 1.4;
}

/* 강조 경고 — 비밀번호 재사용 금지 등 보안 안내 */
.field-hint.field-warn {
    color: #c33020;
    font-weight: bold;
    background: #fff8f7;
    border-left: 3px solid #fa5536;
    padding: 6px 8px;
    border-radius: 0 3px 3px 0;
}
.field-hint.field-warn strong {
    text-decoration: underline;
}

/* ─────── 제출 버튼 ─────── */
.auth-button {
    margin-top: 4px;
    height: 40px;
    background: #4f80ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    letter-spacing: -0.3px;
}
.auth-button:hover {
    background: #3a6dec;
}
.auth-button:disabled {
    background: #b8c1cc;
    cursor: not-allowed;
}

/* ─────── 대체 행동 안내 ─────── */
.auth-alt {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #8ba4b3;
}
.auth-alt a {
    color: #4f80ff;
    text-decoration: none;
    font-weight: bold;
}
.auth-alt a:hover {
    text-decoration: underline;
}

/* ─────── 정책 안내 (가입 페이지) ─────── */
.auth-policy {
    margin-top: 16px;
    padding: 10px 12px;
    background: #f3f6fa;
    border-radius: 4px;
    font-size: 11px;
    color: #586676;
    line-height: 1.6;
}
.auth-policy strong {
    color: #2c313d;
    font-weight: bold;
}

/* ─────── 모바일 ─────── */
@media (max-width: 480px) {
    .auth-container {
        margin: 16px;
        padding: 24px 16px;
    }
}
