/* Design tokens */
:root {
    --primary: #004876;  /* main */
    --secondary: #00adbb; /* accent */
    --bg: #f6fafd;
    --panel: #ffffff;
    --text: #1c2a3a;
    --muted: #4a5a6a;
    --ring: rgba(0, 173, 187, 0.35);
    --shadow: 0 8px 28px rgba(0, 72, 118, 0.12);
}

/* Global reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Show focus only for keyboard users; keep a11y on controls */
:focus:not(:focus-visible) { outline: none; }
h1:focus, h1:focus-visible { outline: none; }
svg:focus { outline: none; }

/* Page layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 1.25rem;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 2fr 1fr; /* left 2/3, right 1/3 */
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.left-section h1 {
    margin: 0;
    font-weight: 800;
    line-height: 1.1;
    font-size: clamp(2rem, 3.6vw, 3rem);
    letter-spacing: -0.5px;
    color: var(--primary);
}

.left-section p {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--muted);
}

/* Logo-like treatment for ALERTS! */
.logo-mark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0 0.25rem;
    padding: 0.06rem 0.5rem 0.12rem 0.35rem;
    line-height: 1;
    vertical-align: baseline;
    position: relative;
    top: 0.02em; /* nudge to sit on baseline */
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0,72,118,0.06) 0%, rgba(0,173,187,0.12) 100%);
    color: var(--primary);
    border: 1px solid rgba(0,72,118,0.12);
    box-shadow: 0 2px 10px rgba(0,72,118,0.06);
    white-space: nowrap;
}

.logo-mark .logo-icon {
    width: 1em;
    height: 1em;
    color: var(--secondary);
}

.kicker {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(0, 72, 118, 0.06);
    border: 1px solid rgba(0, 72, 118, 0.12);
    border-radius: 999px;
}

.lede { max-width: 60ch; }

.right-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 380px;
    padding: 2rem;
    background: var(--panel);
    border-radius: 16px;
    border: 1px solid rgba(0, 72, 118, 0.08);
    box-shadow: var(--shadow);
}

.login-box .hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.login-box .cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 72, 118, 0.18);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
    text-decoration: none;
}

.login-box .cta:hover { filter: brightness(1.05); }
.login-box .cta:active { transform: translateY(1px); }
.login-box .cta:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .right-section { order: 2; }
    .left-section { order: 1; }
}

@media (max-width: 520px) {
    .left-section h1 {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }
    .logo-mark { padding: 0.04rem 0.4rem 0.08rem 0.3rem; gap: 0.35rem; }
    .login-box { padding: 1.25rem; }
}

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

/* Decorative hero shapes */
.main-container::before {
    content: "";
    position: fixed;
    inset: -20% auto auto -10%;
    width: 55vmax;
    height: 55vmax;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0,173,187,0.18) 0%, rgba(0,173,187,0) 70%);
    pointer-events: none;
    z-index: -1;
}

.main-container::after {
    content: "";
    position: fixed;
    inset: auto -15% -20% auto;
    width: 45vmax;
    height: 45vmax;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0,72,118,0.18) 0%, rgba(0,72,118,0) 70%);
    pointer-events: none;
    z-index: -1;
}