:root {
    color-scheme: light;
    --navy: #0d334a;
    --navy-deep: #082638;
    --blue: #1678a9;
    --blue-soft: #eaf5fb;
    --ink: #172b3a;
    --muted: #667b8b;
    --line: #d9e4ea;
    --surface: #ffffff;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --focus: #2b8fc2;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #eef3f6;
}
button, input { font: inherit; }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 44%) minmax(480px, 56%);
}

.login-information {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(32px, 5vw, 72px);
    color: #fff;
    background:
        radial-gradient(circle at 18% 22%, rgba(56, 169, 214, .34), transparent 30%),
        linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 72%);
}
.login-information::after {
    content: "";
    position: absolute;
    right: -16%;
    bottom: -20%;
    width: 62vw;
    height: 62vw;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.brand-lockup, .information-copy, .login-information footer { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; gap: 18px; }
.brand-lockup img { object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.2)); }
.eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #6fd2ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.brand-lockup h1 { margin: 0; font-size: clamp(24px, 2vw, 32px); }
.information-copy { max-width: 660px; }
.information-copy h2 { max-width: 620px; margin: 22px 0 16px; font-size: clamp(38px, 4.1vw, 66px); line-height: 1.02; letter-spacing: -.045em; }
.information-copy p { max-width: 590px; margin: 0; color: rgba(255,255,255,.76); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.7; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; }
.status-pill span { width: 8px; height: 8px; border-radius: 50%; background: #48d597; box-shadow: 0 0 0 5px rgba(72,213,151,.13); }
.login-information footer { color: rgba(255,255,255,.58); font-size: 13px; }

.login-panel {
    display: grid;
    place-items: center;
    align-content: center;
    padding: clamp(24px, 6vw, 96px);
    background: linear-gradient(145deg, #f8fafb, #eef4f7);
}
.login-card { width: min(100%, 510px); padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(17, 65, 91, .11); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(16, 54, 75, .12); }
.login-heading h2 { margin: 0 0 9px; color: var(--navy); font-size: clamp(29px, 3vw, 40px); letter-spacing: -.035em; }
.login-heading p { margin: 0 0 30px; color: var(--muted); }
.login-alert { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 13px 15px; border: 1px solid #f4c7c3; border-radius: 11px; color: var(--danger); background: var(--danger-bg); font-size: 14px; line-height: 1.45; }
.alert-icon { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--danger); font-size: 12px; font-weight: 800; }
.field-group { margin-bottom: 20px; }
.field-group label { display: block; margin-bottom: 8px; color: #294355; font-size: 14px; font-weight: 700; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.caps-warning { color: #a15c00; font-size: 12px; font-weight: 700; }
.field-control { position: relative; display: flex; align-items: center; }
.field-control input { width: 100%; min-height: 52px; padding: 0 72px 0 46px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: #fbfdfe; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.field-control input:focus { border-color: var(--focus); background: #fff; box-shadow: 0 0 0 4px rgba(43,143,194,.13); }
.field-control input[aria-invalid="true"] { border-color: #d92d20; box-shadow: 0 0 0 4px rgba(217,45,32,.09); }
.field-icon { position: absolute; left: 16px; z-index: 1; color: #648091; font-size: 13px; font-weight: 800; }
.password-toggle { position: absolute; right: 9px; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--blue); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.password-toggle:hover { background: var(--blue-soft); }
.field-error { display: block; min-height: 18px; padding-top: 5px; color: var(--danger); font-size: 12px; }
.submit-button { position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 7px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #167eaf, #0c4d70); box-shadow: 0 12px 25px rgba(13, 79, 113, .2); cursor: pointer; font-weight: 800; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(13,79,113,.25); }
.submit-button:disabled { cursor: wait; opacity: .78; transform: none; }
.button-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .button-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.security-note { display: flex; gap: 11px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #e7eef2; color: var(--muted); font-size: 12px; line-height: 1.55; }
.security-note p { margin: 0; }
.security-note span { color: #2d9b72; }
.support-copy { width: min(100%, 510px); margin: 18px 0 0; color: #6d808d; text-align: center; font-size: 12px; }

@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-information { min-height: 290px; padding: 28px; }
    .information-copy h2 { margin-top: 16px; font-size: 38px; }
    .information-copy p, .login-information footer { display: none; }
    .login-panel { min-height: calc(100vh - 290px); padding: 24px; }
}
@media (max-width: 520px) {
    .login-information { min-height: 220px; }
    .brand-lockup img { width: 64px; height: 64px; }
    .information-copy h2 { font-size: 30px; }
    .status-pill { display: none; }
    .login-panel { min-height: calc(100vh - 220px); padding: 14px; }
    .login-card { padding: 24px 20px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Boarding PWA entry point */
.login-mode-pill {
    display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 6px 10px;
    border-radius: 999px; color: #0b5b7f; background: #e8f4fa; font-size: 11px; font-weight: 850;
    letter-spacing: .06em; text-transform: uppercase;
}
.boarding-install-card {
    display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px 12px; align-items: center;
    margin-top: 18px; padding: 14px; border: 1px solid #cfe0e9; border-radius: 13px; background: #f6fbfd;
}
.boarding-install-icon {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
    color: #fff; background: linear-gradient(135deg,#167eaf,#0c4d70); font-size: 20px; font-weight: 900;
}
.boarding-install-copy strong { display:block; color:var(--navy); font-size:13px; }
.boarding-install-copy span { display:block; margin-top:3px; color:var(--muted); font-size:11px; line-height:1.45; }
.boarding-install-button {
    grid-column: 1 / -1; display:flex; justify-content:center; align-items:center; min-height:42px; padding:9px 12px;
    border-radius:9px; color:#0d5f86; background:#e7f4fa; text-decoration:none; font-size:12px; font-weight:850;
}
.boarding-install-button:hover { background:#d9eef8; }
.boarding-login-actions { margin-top:16px; text-align:center; }
.boarding-secondary-link { color:var(--blue); text-decoration:none; font-size:12px; font-weight:750; }
.boarding-secondary-link:hover { text-decoration:underline; }
