/* login.css — 로그인 화면 (처음의 두 면 구성: 왼쪽 브랜드 면 + 별 궤적, 오른쪽 양식). base.css 토큰 위에 얹는다. */
:root { --lg-side: #F3F1EA; --art: 18, 20, 25; --art-a: .11; --on-gold: #1B1503; --gold-hover: #E0A800; --gold-tint: rgba(242, 181, 0, .12); --gold-line: rgba(242, 181, 0, .35); }
:root[data-theme="dark"] { --lg-side: #05070A; --art: 232, 236, 245; --art-a: .085; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lg-side: #05070A; --art: 232, 236, 245; --art-a: .085; } }
body.login-page { background: var(--bg); }

.login { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(440px, 1fr); min-height: 100vh; min-height: 100dvh; }
.lg-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 48px; background: var(--lg-side); border-right: 1px solid var(--line); }
.lg-org { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.lg-org img { height: 28px; width: auto; }
.lg-hero { position: relative; z-index: 1; margin: auto 0; padding-left: 4%; }
.lg-mark { position: relative; width: min(480px, 78%); }
.lg-mark img { position: relative; z-index: 1; width: 100%; height: auto; }
.lg-art { position: absolute; left: 58.2%; top: 14.7%; width: 2000px; height: 2000px; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.lg-art .tr { fill: none; stroke: rgb(var(--art)); stroke-width: 1; stroke-linecap: round; }
.lg-art .dot { fill: rgb(var(--art)); fill-opacity: calc(var(--art-a) * 4); }
.lg-tag { margin-top: 36px; max-width: 26em; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.lg-tag b { color: var(--ink); font-weight: 650; }
.lg-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-top: 20px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lg-spec span { display: inline-flex; align-items: center; white-space: nowrap; }
.lg-spec span + span::before { content: ''; width: 1px; height: 12px; margin: 0 14px; background: var(--line-2); }
.lg-foot { position: relative; z-index: 1; font-size: 12px; color: var(--ink-3); }

.lg-side { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.lg-form { width: 100%; max-width: 376px; margin: 0 auto; }
.lg-m-brand { display: none; }
.lg-form h1 { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; }
.lg-lead { margin: 6px 0 30px; font-size: 14px; color: var(--ink-2); }
.lg-fields { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lab-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.lab { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.hint { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.inp { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: 14.5px var(--font); transition: border-color .12s ease, box-shadow .12s ease; }
.inp::placeholder { color: var(--ink-4); }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 9%, transparent); }
.inp[aria-invalid="true"] { border-color: var(--danger); }
.pw { position: relative; }
.pw .inp { padding-right: 46px; }
.icon-btn { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.otp .inp { letter-spacing: .35em; font-weight: 600; font-variant-numeric: tabular-nums; }
.otp .inp::placeholder { letter-spacing: 0; font-weight: 450; }
.lg-help { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.lg-remember { margin-top: 20px; }
.lg-remember .check { font-size: 14px; font-weight: 550; color: var(--ink); gap: 10px; }
.lg-remember .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.lg-remember .lg-help { margin: 4px 0 0 28px; }
.notice { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.notice > svg { width: 16px; height: 16px; margin-top: 1px; flex: none; }
.notice.is-error { background: var(--danger-bg); color: var(--danger); }
.notice.is-info { background: var(--gold-tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold-line); }
.notice.is-info > svg { color: var(--accent-ink); }
.btn-gold { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); background: var(--accent); color: var(--on-gold); font: 600 15px var(--font); border-radius: 9px; cursor: pointer; transition: background-color .12s ease; }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-gold:disabled { opacity: .55; cursor: default; }
.lg-submit { width: 100%; height: 46px; margin-top: 24px; }
.lg-meta { display: flex; align-items: flex-start; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.lg-meta svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

@media (max-width: 1100px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .lg-brand { display: none; }
  .lg-side { padding: 40px 24px; }
  .lg-m-brand { display: block; margin-bottom: 32px; }
  .lg-m-brand .wm { height: 52px; width: auto; }
  .lg-m-brand p { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
  .lg-m-brand p img { height: 18px; width: auto; }
}
@media (max-width: 760px) {
  .lg-side { padding: 32px 20px; justify-content: flex-start; }
  .inp { font-size: 16px; }
}
