/* VTKK UAT login — Executive Calm tokens (frontend/src/styles/index.css). Self-hosted Be Vietnam Pro (SIL OFL). */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/auth/assets/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/auth/assets/fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/auth/assets/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/auth/assets/fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/auth/assets/fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/auth/assets/fonts/be-vietnam-pro-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --canvas: #f5f7fa; --surface: #ffffff; --surface-2: #f0f3f7;
  --ink: #142235; --ink-2: #46566a; --ink-3: #5f6e80;
  --line: #e1e6ec; --line-strong: #cdd5de; --line-input: #758496;
  --navy-900: #0f2540; --navy-800: #17324f; --navy-700: #21405f; --navy-100: #e6ecf3; --nav-muted: #8fa3b8;
  --teal-800: #095b59; --teal-700: #0b6e6c; --teal-500: #12918e; --teal-100: #cde8e6; --teal-50: #e7f3f2; --teal-on-navy: #9ee3dd;
  --risk: #a8261b; --risk-bg: #fcedeb; --risk-line: #f1b3ac;
  --ok: #1b6b45; --ok-bg: #e8f4ed; --ok-line: #9fd0b4;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
  --shadow-2: 0 10px 30px rgb(20 34 53 / 0.14);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--canvas); color: var(--ink);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
}

.page { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 52px); }

.brand {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 56px clamp(32px, 6vw, 88px);
  background: radial-gradient(120% 90% at 0% 0%, var(--navy-700) 0%, var(--navy-900) 62%);
  color: #fff;
}
.brand__mark {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px;
  border-radius: var(--radius-md); background: var(--teal-700); color: #fff;
  font-weight: 700; font-size: 18px; letter-spacing: 0.04em; box-shadow: 0 0 0 4px rgb(158 227 221 / 0.18);
}
.brand__eyebrow { margin: 0; color: var(--teal-on-navy); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.brand__name { margin: 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; line-height: 1.2; }
.brand__tagline { margin: 0; max-width: 34ch; color: #d6e0ea; font-size: 16px; }
.brand__points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #e6edf4; font-size: 14px; }
.brand__points li { display: flex; align-items: center; gap: 10px; }
.brand__points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-on-navy); flex: none; }

.panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.card {
  width: 100%; max-width: 420px; padding: 36px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}
.card__title { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.card__lead { margin: 0 0 24px; color: var(--ink-2); font-size: 14px; }

.notice { margin: 0 0 20px; padding: 12px 14px; border: 1px solid; border-radius: var(--radius-sm); font-size: 14px; }
.notice--error { color: var(--risk); background: var(--risk-bg); border-color: var(--risk-line); }
.notice--success { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.notice--info { color: var(--navy-800); background: var(--navy-100); border-color: var(--line-strong); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line-input); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field__input:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px var(--teal-100); }

.password { position: relative; }
.password__input { padding-right: 88px; }
.password__toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--teal-700);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.password__toggle:hover { background: var(--teal-50); color: var(--teal-800); }
.password__toggle:focus-visible, .submit:focus-visible, .secondary-link:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }

.submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; margin-top: 4px; padding: 0 16px;
  border: 1px solid var(--teal-700); border-radius: var(--radius-sm); background: var(--teal-700); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color 150ms var(--ease);
}
.submit:hover { background: var(--teal-800); border-color: var(--teal-800); }
.submit[aria-busy='true'] { cursor: progress; opacity: 0.8; }
.submit[aria-busy='true']::before {
  content: ''; width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / 0.45); border-top-color: #fff;
  border-radius: 50%; animation: spin 800ms linear infinite;
}
.submit[aria-busy='true'] svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.secondary-link { display: block; margin-top: 16px; text-align: center; color: var(--teal-700); font-size: 14px; font-weight: 600; }
.disclaimer { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.disclaimer strong { color: var(--ink-2); }

.footer {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 16px;
  border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 13px; text-align: center;
}
.footer__badge { padding: 2px 8px; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }

@media (max-width: 899px) {
  .page { grid-template-columns: 1fr; min-height: auto; }
  .brand { padding: 28px 20px 24px; gap: 6px; }
  .brand__mark { width: 44px; height: 44px; font-size: 16px; margin-bottom: 6px; }
  .brand__name { font-size: 24px; }
  .brand__tagline { font-size: 14px; }
  .brand__points { display: none; }
  .panel { align-items: flex-start; padding: 20px 16px 32px; }
  .card { padding: 28px 20px; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
