:root {
  color-scheme: dark;
  --color-bg: #0c0c0f;
  --color-panel: #151518;
  --color-raised: #1d1d22;
  --color-line: #34343c;
  --color-text: #fafafc;
  --color-muted: #a6a6b2;
  --color-brand: #d93632;
  --color-brand-hover: #c12925;
  --color-soft: #ff8a83;
  --color-green: #7dd6ad;
  font-family: 'Noto Sans KR', sans-serif;
  font-synthesis: none;
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { min-width: 280px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-soft); outline-offset: 4px; }
::selection { color: var(--color-text); background: #73302e; }
.brand-logo { position: relative; display: block; flex: 0 0 auto; width: 40px; height: 44px; overflow: hidden; mix-blend-mode: screen; }
.brand-logo img { position: absolute; display: block; width: 114.16%; height: 103.41%; max-width: none; left: -7.19%; top: -1.96%; pointer-events: none; }
.eyebrow { color: var(--color-soft); font-size: 11px; font-weight: 700; line-height: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 12px; padding: 12px 24px; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--color-text); transition: background-color 140ms ease, box-shadow 140ms ease; }
.button-primary { background: var(--color-brand); }
.button-primary:hover:not(:disabled) { background: var(--color-brand-hover); }
.button-secondary { background: var(--color-raised); }
.button-secondary:hover:not(:disabled) { background: #2a2a32; }
.button:disabled { background: var(--color-raised); color: var(--color-muted); }
.login-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.login-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px 24px; }
.login-logo { width: 112px; height: 123.2px; }
.login-card { width: 440px; max-width: 100%; min-height: 464px; padding: 39px; background: var(--color-panel); border: 1px solid var(--color-line); border-radius: 24px; }
.login-heading { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.login-heading h1 { font-size: 28px; font-weight: 700; line-height: 42px; letter-spacing: -.84px; }
.login-description { font-size: 14px; line-height: 21px; color: var(--color-muted); word-break: keep-all; }
#login-form { display: flex; flex-direction: column; gap: 24px; }
.token-field { display: flex; flex-direction: column; gap: 8px; min-height: 112px; }
.token-field label { font-size: 14px; line-height: 21px; font-weight: 500; }
.token-control { display: flex; align-items: center; gap: 8px; height: 56px; flex-shrink: 0; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-bg); padding: 0 15px; transition: border-color 140ms ease, box-shadow 140ms ease; }
.token-control:focus-within { border-color: var(--color-brand); box-shadow: 0 0 0 1px var(--color-brand); }
.token-control.is-error { border-color: var(--color-soft); }
.token-control.is-error:focus-within { box-shadow: 0 0 0 1px var(--color-soft); }
.token-control input { min-width: 0; width: 100%; flex: 1; height: 100%; border: none; outline: none; background: transparent; color: var(--color-text); font-size: 15px; line-height: 23px; padding: 0; caret-color: var(--color-soft); }
.token-control input::placeholder { color: var(--color-muted); opacity: 1; }
.token-control input:-webkit-autofill { -webkit-text-fill-color: var(--color-text); -webkit-box-shadow: 0 0 0 1000px var(--color-bg) inset; }
.token-visibility { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 6px; padding: 0; background: transparent; color: var(--color-muted); font-size: 12px; font-weight: 500; line-height: 18px; }
.token-visibility:hover:not(:disabled) { background: var(--color-raised); color: var(--color-text); }
.token-helper { min-height: 18px; color: var(--color-muted); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.token-helper.is-error { color: var(--color-soft); }
.login-submit { width: 100%; min-height: 52px; }
.login-submit[aria-busy="true"] { background: var(--color-brand); color: var(--color-text); cursor: wait; }
.button-spinner { display: none; width: 16px; height: 16px; border: 2px solid #ffffff50; border-top-color: var(--color-text); border-radius: 50%; animation: spin .7s linear infinite; }
.login-submit[aria-busy="true"] .button-spinner { display: block; }
.access-guidance { margin-top: 24px; color: var(--color-muted); text-align: center; font-size: 13px; line-height: 20px; word-break: keep-all; }
.login-footer { display: flex; align-items: center; justify-content: center; flex: 0 0 80px; color: var(--color-muted); font-size: 11px; font-weight: 500; line-height: 17px; padding: 16px 24px; }
.noscript-notice { margin-top: 16px; color: var(--color-soft); font-size: 13px; line-height: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .login-main { padding: 24px; }
  .login-logo { width: 88px; height: 96.8px; }
  .login-card { min-height: 420px; padding: 23px; }
  .login-heading h1 { font-size: 24px; line-height: 36px; letter-spacing: -.72px; }
  .login-footer { flex-basis: 64px; font-size: 10px; line-height: 15px; }
  .token-control input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
