:root {
  color-scheme: light;
  --royal-950: #071a35;
  --royal-900: #0c2850;
  --royal-800: #123b73;
  --royal-700: #194e91;
  --gold: #aa8750;
  --gold-light: #c9ad7a;
  --ink: #152235;
  --muted: #687589;
  --paper: #f7f5f0;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--royal-950); }
.login-page { overflow: hidden; }
.dashboard-backdrop { position: fixed; inset: 0; background: radial-gradient(circle at 70% 20%, #245ea5 0, transparent 35%), linear-gradient(135deg, #071a35, #0c2d5b 65%, #123b73); opacity: .92; }
.dashboard-backdrop::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 42px 42px; }
.backdrop-nav { position: absolute; left: 7vw; top: 12vh; width: 150px; display: grid; gap: 18px; opacity: .3; }
.backdrop-nav span { height: 7px; border-radius: 9px; background: #c5d6ed; }
.backdrop-nav span:nth-child(2) { width: 72%; background: var(--gold-light); }
.backdrop-grid { position: absolute; right: 5vw; bottom: 8vh; width: min(52vw, 760px); display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; opacity: .22; transform: perspective(900px) rotateY(-8deg); }
.backdrop-card { min-height: 190px; padding: 28px; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; background: rgba(255,255,255,.12); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.backdrop-card.wide { grid-row: span 2; min-height: 400px; display: flex; align-items: flex-end; gap: 8%; }
.backdrop-card.wide b { display: block; width: 18%; height: 42%; background: #d7e2f0; border-radius: 5px 5px 0 0; }
.backdrop-card.wide b:nth-child(3) { height: 70%; background: var(--gold-light); }
.backdrop-card.wide b:nth-child(4) { height: 55%; }
.backdrop-card strong { color: white; font-size: 42px; }
.backdrop-card i { display: block; width: 70%; height: 8px; margin-top: 22px; background: #d7e2f0; border-radius: 5px; }
.backdrop-card em { display: inline-block; width: 48px; height: 48px; margin: 20px 10px 0 0; border: 7px solid var(--gold-light); border-radius: 50%; }
.login-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(100%, 430px); padding: 44px 46px 36px; border: 1px solid rgba(170,135,80,.32); border-radius: 22px; background: rgba(250,249,246,.97); box-shadow: 0 35px 90px rgba(2,14,32,.42); backdrop-filter: blur(20px); }
.brand-mark { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 13px; color: white; background: linear-gradient(145deg, var(--royal-700), var(--royal-950)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 9px 22px rgba(12,40,80,.2); }
.brand-mark span { font-family: Georgia, serif; color: var(--gold-light); font-weight: 700; font-size: 27px; }
.product-kicker { margin: 0 0 8px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; color: var(--royal-950); font-family: Georgia, "Times New Roman", serif; font-size: 38px; line-height: 1; letter-spacing: -.03em; }
h1 span { color: var(--gold); font-weight: 400; }
.login-intro { margin: 15px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.55; }
label { display: block; margin: 0 0 8px; color: #34445a; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.input-wrap { position: relative; margin-bottom: 19px; }
.input-wrap svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--gold); stroke-width: 1.7; }
input { width: 100%; height: 50px; padding: 0 48px 0 45px; border: 1px solid #d8dce2; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; outline: none; transition: .2s ease; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(170,135,80,.13); }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; color: var(--royal-700); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.login-submit { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 0 19px; border: 1px solid #214f89; border-radius: 10px; color: white; background: linear-gradient(135deg, var(--royal-800), var(--royal-700)); font: inherit; font-weight: 750; cursor: pointer; box-shadow: 0 10px 24px rgba(18,59,115,.22); }
.login-submit:hover { background: linear-gradient(135deg, var(--royal-700), #1f5ca5); transform: translateY(-1px); }
.login-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.login-status { min-height: 21px; margin: 15px 0 0; color: #a23d36; font-size: 12px; text-align: center; }
.security-note { padding-top: 19px; border-top: 1px solid #e5e0d7; color: #7b818c; font-size: 11px; text-align: center; }
.security-note span { margin-right: 7px; color: var(--gold); font-size: 8px; }
@media (max-width: 560px) { .login-shell { padding: 16px; } .login-card { padding: 34px 25px 28px; border-radius: 18px; } h1 { font-size: 34px; } .backdrop-grid { width: 90vw; right: -38vw; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
