:root {
  color-scheme: light;
  --navy: #071b33;
  --navy-2: #0d2947;
  --blue: #00a7d8;
  --lime: #b7d532;
  --ink: #172737;
  --muted: #637485;
  --line: #d8e2e9;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: #eaf0f4; }
button, a { font: inherit; }
.login-shell { display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr); min-height: 100vh; }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(32px, 6vw, 78px); color: white; background: radial-gradient(circle at 18% 86%, rgba(0,167,216,.28), transparent 31%), radial-gradient(circle at 90% 10%, rgba(183,213,50,.18), transparent 26%), linear-gradient(145deg, var(--navy), #0b2744 68%, #0a3451); }
.login-visual::after { position: absolute; right: -130px; bottom: -150px; width: 440px; height: 440px; content: ""; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); }
.brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.brand-mark { display: grid; width: 52px; height: 52px; place-items: center; color: var(--navy); background: linear-gradient(135deg, var(--lime) 0 48%, var(--blue) 48% 100%); border-radius: 15px 15px 5px 15px; font-size: 1.05rem; font-weight: 950; letter-spacing: -.08em; }
.brand-lockup div { display: grid; line-height: 1.2; }
.brand-lockup strong { letter-spacing: .055em; }
.brand-lockup span:not(.brand-mark) { margin-top: 4px; color: #a9bbc9; font-size: .82rem; }
.visual-copy { position: relative; z-index: 1; max-width: 650px; margin: clamp(70px, 13vh, 150px) 0; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: .76rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.visual-copy h1 { margin: 0; max-width: 700px; font-size: clamp(2.55rem, 5.2vw, 5.3rem); line-height: .98; letter-spacing: -.055em; }
.visual-copy > p:last-child { max-width: 590px; margin: 26px 0 0; color: #c5d1da; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.65; }
.security-points { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 20px; color: #b9c8d3; font-size: .82rem; font-weight: 700; }
.security-points span::first-letter { color: var(--lime); }
.login-card { display: grid; min-height: 100vh; place-items: center; padding: 34px; background: linear-gradient(135deg, #f7fafc, #e9f0f4); }
.login-card-inner { width: min(100%, 470px); padding: clamp(30px, 4vw, 52px); background: white; border: 1px solid rgba(7,27,51,.09); border-radius: 24px; box-shadow: 0 24px 65px rgba(7,27,51,.12); }
.login-card h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.045em; }
.login-card h2 + p { margin: 15px 0 30px; color: var(--muted); line-height: 1.6; }
.login-state { display: flex; align-items: center; gap: 12px; min-height: 58px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid #d8e6ed; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.primary-action, .secondary-action { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 12px; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; }
.primary-action { color: var(--navy); background: var(--lime); border: 0; box-shadow: 0 10px 22px rgba(183,213,50,.23); }
.primary-action:hover { filter: brightness(.97); transform: translateY(-1px); }
.secondary-action { margin-top: 14px; color: var(--navy); background: #f2f6f8; border: 1px solid var(--line); }
#signedOutState small { display: block; margin-top: 14px; color: var(--muted); font-size: .78rem; line-height: 1.55; text-align: center; }
.identity-card { display: grid; gap: 3px; margin-bottom: 18px; padding: 14px 16px; background: #eef8fb; border: 1px solid #c7e8f1; border-radius: 12px; }
.identity-card span { color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.identity-card strong { overflow-wrap: anywhere; color: var(--navy); }
#bootstrapState > p { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.notice { padding: 18px; border-radius: 13px; }
.notice strong { display: block; margin-bottom: 5px; color: var(--navy); }
.notice p { margin: 0 0 8px; color: var(--muted); line-height: 1.5; }
.notice span { color: var(--navy); font-size: .86rem; font-weight: 800; overflow-wrap: anywhere; }
.notice-warning { background: #fff7df; border: 1px solid #efdca4; }
.notice-error { background: #fff0ef; border: 1px solid #efc7c3; }
.login-card footer { position: fixed; right: 34px; bottom: 22px; color: #7d8b97; font-size: .72rem; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 390px; padding: 28px; }
  .visual-copy { margin: 54px 0 30px; }
  .visual-copy h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .security-points { display: none; }
  .login-card { min-height: auto; padding: 28px 18px 64px; }
  .login-card-inner { padding: 30px 24px; }
  .login-card footer { position: static; margin-top: 24px; text-align: center; }
}
