/* 인증 화면(로그인·회원가입·재인증·비밀번호 찾기/재설정) v2 공통 스타일 — docs/design/v2/tokens.css 기준 */
/* v2 토큰 (docs/design/v2/tokens.css 중 로그인에 필요한 부분) */
:root {
    --accent: #d0021b; --accent-hover: #ae0015; --accent-soft: #fff0f2;
    --surface: #fff; --surface-subtle: #f8f9fb; --ink: #202735; --muted: #606b7c; --line: #e1e5ec;
    --success: #176348; --success-bg: #eaf6ef; --danger: #b42335; --danger-bg: #fff0f2; --info: #315d94; --info-bg: #eef4fc;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    --shadow-pop: 0 12px 32px #20273512;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { background: var(--surface); color: var(--ink); font: 14px/1.6 var(--font); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.login-screen { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); }

.login-story { background: #edf0f4; padding: 55px 12%; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; position: absolute; top: 30px; left: 12%; }
.brand-mark { display: grid; place-items: center; background: var(--accent); color: #fff; width: 32px; height: 32px; border-radius: 9px; font-size: 20px; font-weight: 800; line-height: 1; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.6px; line-height: 1.2; }
.brand small { display: block; font-size: 10px; letter-spacing: 1.2px; color: var(--muted); line-height: 1.1; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted); }
.login-story h1 { font-size: 42px; line-height: 1.35; letter-spacing: -1.8px; margin: 15px 0 20px; }
.login-story p { font-size: 14px; color: var(--muted); }
.login-resource { margin-top: 40px; max-width: 370px; transform: rotate(-3deg); box-shadow: var(--shadow-pop); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.login-resource .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.login-resource .mono { font-family: var(--mono); font-size: 12px; margin: 14px 0 6px; color: var(--ink); }
.resource-icon { background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.resource-icon svg { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-info { background: var(--info-bg); color: var(--info); }

.login-form-area { padding: 60px 15%; display: flex; flex-direction: column; justify-content: center; }
.login-form-area h2 { font-size: 24px; margin: 14px 0 6px; letter-spacing: -.5px; }
.login-form-area .lead { font-size: 12px; color: var(--muted); }
.login-form { margin-top: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; }
.input { width: 100%; min-height: 40px; border: 1px solid #cfd5df; border-radius: 6px; background: #fff; padding: 9px 11px; color: var(--ink); font-size: 13px; outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #d0021b14; }
.input::placeholder { color: #788393; }
.helper { margin-top: 6px; font-size: 11px; color: var(--muted); }
.check-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.check-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; }
.text-link { color: var(--accent); font-size: 12px; font-weight: 650; }
.text-link:hover { text-decoration: underline; }
.btn-login {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 22px;
    border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 6px;
    font-size: 13px; font-weight: 650; cursor: pointer;
}
.btn-login:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-login:disabled { opacity: .5; cursor: not-allowed; }
.login-links { display: flex; justify-content: center; gap: 20px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.login-links a:hover { color: var(--ink); text-decoration: underline; }
.login-help { margin-top: 22px; }
.login-help summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.copyright { margin-top: 55px; font-size: 10px; color: var(--muted); }

.alert { padding: 11px 14px; border-radius: 6px; border: 1px solid; font-size: 12px; margin-top: 18px; }
.alert-success { background: var(--success-bg); border-color: #c6e6d3; color: var(--success); }
.alert-error { background: var(--danger-bg); border-color: #efc8cf; color: var(--danger); }

@media (max-width: 960px) {
    .login-story { padding: 100px 10% 55px; }
    .login-story h1 { font-size: 32px; }
    .login-form-area { padding: 50px 10%; }
}
@media (max-width: 640px) {
    .login-screen { grid-template-columns: 1fr; }
    .login-story { padding: 100px 30px 40px; }
    .brand { left: 30px; }
    .login-form-area { padding: 40px 30px; }
    .login-resource { display: none; }
}
    

/* ── 로그인 외 인증 화면 공통(회원가입·재인증·비밀번호 찾기/재설정) ───────────── */
.auth-steps { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 11px; color: var(--muted); }
.step-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #cfd5df; background: #fff; color: var(--muted); font-size: 11px; font-weight: 700; }
.step-dot.active, .step-dot.done { border-color: var(--accent); background: var(--accent); color: #fff; }
.step-line { width: 36px; height: 2px; background: #cfd5df; border-radius: 1px; }
.step-line.done { background: var(--accent); }
.step-section { display: none; }
.step-section.active { display: block; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; white-space: nowrap;
    border: 1px solid #cfd5df; background: #fff; color: var(--ink); border-radius: 6px; font-size: 12px; font-weight: 650; cursor: pointer;
}
.btn-secondary:hover { background: var(--surface-subtle); }
.btn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; align-items: stretch; margin-top: 22px; }
.btn-row .btn-login { margin-top: 0; flex: 1; }
.btn-row .btn-secondary { min-height: 44px; }
.alert-info { background: var(--info-bg); border-color: #d5e1f2; color: var(--info); }
.alert[data-toggle] { display: none; }
.alert[data-toggle].show { display: block; }
.login-form .alert { margin: 0 0 18px; }
.pw-match { font-size: 11px; margin-top: 6px; min-height: 0; }
.terms-group { margin-bottom: 18px; }
.terms-group > .terms-title { display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; }
.terms-box { height: 160px; overflow-y: auto; border: 1px solid #cfd5df; border-radius: 6px; background: var(--surface-subtle); padding: 12px 14px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.terms-box h4 { font-size: 12px; color: var(--ink); margin: 10px 0 2px; }
.terms-box h4:first-child { margin-top: 0; }
.terms-agree-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; }
.terms-agree-row label { cursor: pointer; }
.back-link { display: block; text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.story-list { list-style: none; margin-top: 34px; display: grid; gap: 12px; max-width: 380px; }
.story-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.story-list li b { color: var(--accent); font-weight: 750; min-width: 18px; }
@media (max-width: 640px) { .story-list { display: none; } }
