:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e2e8f0;
  background: #091326;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 0 55%, rgba(8, 145, 178, 0.1), transparent 28%),
    radial-gradient(circle at 100% 20%, rgba(37, 99, 235, 0.08), transparent 25%),
    linear-gradient(rgba(148, 163, 184, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.025) 1px, transparent 1px),
    #091326;
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), 1560px);
  margin: auto;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { display: block; width: 52px; height: 52px; flex: 0 0 52px; filter: drop-shadow(0 8px 20px rgba(14, 165, 233, 0.16)); }
.brand-copy { display: block; }
.brand-name { display: block; margin: 0; color: white; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.brand-name span, .accent { color: #22d3ee; }
.brand-tagline { display: block; margin: 3px 0 0; color: #64748b; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px rgba(52, 211, 153, 0.65); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  gap: clamp(48px, 8.5vw, 152px);
  width: min(calc(100% - 64px), 1420px);
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: 16px 0 56px;
}
.hero { max-width: 700px; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; margin: 0 0 28px; padding: 10px 13px; border-left: 2px solid #22d3ee; color: #67e8f9; background: rgba(34, 211, 238, 0.07); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
h1 { max-width: 640px; margin: 0; color: white; font-size: clamp(46px, 4.2vw, 64px); line-height: 1.08; letter-spacing: -0.04em; }
.intro { max-width: 700px; margin: 28px 0 0; color: #94a3b8; font-size: 18px; line-height: 1.65; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 700px; margin-top: 42px; }
.benefit { display: flex; gap: 12px; min-width: 0; }
.check { flex: 0 0 auto; color: #22d3ee; font-size: 19px; font-weight: 900; line-height: 1; }
.benefit strong { display: block; color: #f1f5f9; font-size: 14px; }
.benefit p { margin: 7px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; max-width: 700px; margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.metric + .metric { padding-left: 38px; border-left: 1px solid rgba(255,255,255,.08); }
.metric-value { margin: 0; color: white; font-size: 26px; font-weight: 800; }
.metric-label { margin: 5px 0 0; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.login-wrap { width: 100%; max-width: 570px; margin: 0 auto; padding-top: 6px; min-width: 0; }
.login-card { padding: 42px; border: 1px solid rgba(71,85,105,.8); background: rgba(23,35,56,.92); box-shadow: 0 28px 80px rgba(0,0,0,.38); backdrop-filter: blur(16px); }
.portal-label { margin: 0; color: #22d3ee; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h2 { margin: 20px 0 0; color: white; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.login-copy { margin: 10px 0 35px; color: #94a3b8; font-size: 15px; line-height: 1.5; }

.recognized { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 14px; border: 1px solid rgba(34,211,238,.25); background: rgba(34,211,238,.05); }
.recognized[hidden] { display: none; }
.recognized-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #67e8f9; background: rgba(34,211,238,.1); }
.recognized-text { min-width: 0; flex: 1; }
.recognized-text small { color: #94a3b8; }
.recognized-text strong { display: block; overflow: hidden; color: #f1f5f9; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.change { border: 0; padding: 0; color: #22d3ee; background: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.change:hover { color: #67e8f9; }

.field { display: block; margin-bottom: 26px; }
.field-label { display: block; margin-bottom: 10px; color: #cbd5e1; font-size: 13px; font-weight: 700; }
.input-wrap { display: flex; align-items: center; min-width: 0; height: 58px; padding: 0 16px; border: 1px solid #475569; background: #0d1729; transition: border-color .2s ease, box-shadow .2s ease; }
.input-wrap:focus-within { border-color: #22d3ee; box-shadow: 0 0 0 2px rgba(34,211,238,.1); }
.input-wrap input { min-width: 0; flex: 1; width: 100%; height: 100%; border: 0; outline: 0; color: white; background: transparent; font-size: 14px; }
.input-wrap input::placeholder { color: #475569; opacity: 1; }
.field-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 15px; color: #64748b; flex: 0 0 20px; }
.field-icon svg { display: block; }
.show-password { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; color: #64748b; background: none; cursor: pointer; border-radius: 8px; flex: 0 0 32px; }
.show-password:hover { color: #22d3ee; background: rgba(34,211,238,.06); }
.show-password:focus-visible { outline: 2px solid rgba(34,211,238,.55); outline-offset: 2px; }

.form-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; font-size: 13px; }
.remember { display: flex; align-items: center; gap: 9px; color: #94a3b8; cursor: pointer; }
.remember input { width: 19px; height: 19px; margin: 0; accent-color: #22d3ee; flex: 0 0 auto; }
.forgot { border: 0; padding: 0; color: #22d3ee; background: none; font: inherit; font-weight: 700; text-align: right; cursor: pointer; }
.forgot:hover { text-decoration: underline; }
.forgot:focus-visible { outline: 2px solid rgba(34,211,238,.55); outline-offset: 3px; }

.submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 12px 18px; border: 0; color: #071321; background: #06b6d4; box-shadow: 0 10px 30px rgba(6,182,212,.16); font-size: 14px; font-weight: 800; cursor: pointer; transition: background .2s ease, opacity .2s ease; }
.submit:hover { background: #22d3ee; }
.submit:disabled { opacity: .7; cursor: wait; }

.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); color: #64748b; font-size: 12px; }
.legal a:hover { color: #94a3b8; }
.authorized { margin: 24px 0 0; color: #475569; font-size: 11px; text-align: center; }

@media (max-width: 900px) {
  body { background-size: auto, auto, 36px 36px, 36px 36px, auto; }
  .header { width: calc(100% - 32px); padding: 16px 0; }
  .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .status { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 44px; width: calc(100% - 32px); min-height: auto; padding: 4px 0 40px; }
  .login-wrap { order: 1; margin: 0 auto; padding-top: 0; }
  .hero { order: 2; }
  .login-card { padding: 28px; }
  h1 { font-size: clamp(32px, 8.5vw, 48px); }
  .intro { margin-top: 18px; }
  .benefits { margin-top: 30px; }
  .metrics { margin-top: 34px; }
}

@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-name { font-size: 14px; }
  .brand-tagline { font-size: 9px; letter-spacing: .14em; }
  .login-card { padding: 20px 16px; }
  .login-copy { margin-bottom: 24px; }
  .recognized { padding: 12px; }
  .form-options { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .forgot { text-align: left; }
  .eyebrow { margin-bottom: 20px; font-size: 11px; }
  .intro { font-size: 15px; }
  .benefits { grid-template-columns: 1fr; }
  .legal { gap: 10px 16px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
