/* ============================================================================
 * auth-pages.css — 로그인 전 화면 공통 (login, forgot_password, change_password)
 *
 * 기본 모습은 P-GPT. 브랜드별 모습은 shared/brand/themes 가 html[data-brand] 로 덮는다
 * (색 변수는 생성기가 자동 치환, 소개 영역 배치는 브랜드 수동 CSS).
 * ============================================================================ */

:root {
    color-scheme: light;
    --auth-accent: #7c3aed;
    --auth-accent-strong: #6d28d9;
    --auth-focus-ring: #ddd6fe;
    --auth-status-bg: #f5f3ff;
    --auth-status-text: #4c1d95;
    --auth-page-bg: #f3f4f6;
    --auth-surface: #ffffff;
    --auth-text: #1f2937;
    --auth-muted: #6b7280;
    --auth-border: #cbd5e1;
    --auth-danger: #b91c1c;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body.auth_page {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 72px 16px 24px;
    background: var(--auth-page-bg);
    color: var(--auth-text);
}

/* ── 레이아웃: 소개 영역(브랜드에 따라 숨김) + 카드 ── */
.auth_shell {
    display: flex;
    width: min(100%, 440px);
}
.auth_hero[hidden] { display: none; }

.auth_card {
    flex: 1;
    width: 100%;
    padding: 36px;
    border-radius: 16px;
    background: var(--auth-surface);
    box-shadow: 0 18px 45px rgba(31, 41, 55, .12);
}
.auth_card_mark {
    display: block;
    height: 36px;
    margin: 0 auto 14px;
}

.auth_card h1 { margin: 0 0 8px; text-align: center; font-size: 24px; }
.auth_subtitle { margin: 0 0 28px; text-align: center; color: var(--auth-muted); }
/* 안내 문구 없이 제목 바로 아래 폼이 오는 화면(로그인) */
.auth_card h1 + form { margin-top: 28px; }
.policy { margin: -8px 0 18px; font-size: 13px; color: var(--auth-muted); }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 650; }
.field input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    font: inherit;
}
.field input:focus { outline: 3px solid var(--auth-focus-ring); border-color: var(--auth-accent); }

.auth_submit {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--auth-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.auth_submit:hover { background: var(--auth-accent-strong); }
.auth_submit:disabled { opacity: .65; cursor: wait; }

[role="alert"] { min-height: 24px; margin: 4px 0 12px; color: var(--auth-danger); font-size: 14px; }
[role="status"]:not(:empty) {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--auth-status-bg);
    color: var(--auth-status-text);
    font-size: 14px;
    line-height: 1.5;
}

.auth_links { margin: 20px 0 0; padding: 0; list-style: none; text-align: center; font-size: 14px; }
.auth_links li { display: inline; }
.auth_links li + li::before { content: "|"; margin: 0 12px; color: var(--auth-border); }
.auth_links a { color: var(--auth-accent-strong); font-weight: 600; text-decoration: none; }
.auth_links a:hover, .auth_links a:focus-visible { text-decoration: underline; }
