:root {
    --ink: #203b55;
    --muted: #60758a;
    --deep: #33597d;
    --deep-dark: #274964;
    --sky: #84c3e7;
    --bone: #fefae4;
    --line: rgba(51, 89, 125, .17);
    --font-display: "Acme Gothic", "Arial Narrow", "Segoe UI Semibold", Arial, sans-serif;
    --font-ui: "Gotham Pro", "Century Gothic", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
    --font-accent: "Exo", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--bone); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-ui);
    background:
        radial-gradient(circle at 8% 4%, rgba(132, 195, 231, .24), transparent 28rem),
        linear-gradient(145deg, rgba(254, 250, 228, .94), #fff 55%, rgba(132, 195, 231, .15));
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input { font-family: inherit; }
button:focus-visible, input:focus-visible {
    outline: 3px solid rgba(132, 195, 231, .52);
    outline-offset: 2px;
}
.omega-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.omega-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.08fr) minmax(420px, .92fr); }
.auth-brand {
    position: relative;
    isolation: isolate;
    padding: clamp(56px, 8vw, 130px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 84% 14%, rgba(254, 250, 228, .22), transparent 28%),
        radial-gradient(circle at 12% 88%, rgba(132, 195, 231, .27), transparent 32%),
        linear-gradient(145deg, var(--deep-dark), var(--deep) 66%, var(--sky));
}
.auth-brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(42vw, 580px);
    aspect-ratio: 1;
    right: -18%;
    bottom: -35%;
    border: 1px solid rgba(254, 250, 228, .24);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(254, 250, 228, .035), 0 0 0 120px rgba(132, 195, 231, .04);
}
.auth-brand-lockup, .mobile-logo { display: flex; align-items: center; gap: 13px; }
.auth-brand-lockup { width: max-content; padding: 10px 15px 10px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 18px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); }
.auth-mark {
    width: 54px;
    height: 54px;
    padding: 5px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    background: var(--bone);
    box-shadow: 0 8px 20px rgba(30, 59, 85, .16);
}
.auth-mark img { width: 100%; height: 100%; display: block; object-fit: contain; transform: none; }
.auth-brand-lockup strong, .mobile-logo strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 900; letter-spacing: -.015em; }
.auth-brand-lockup small, .mobile-logo small { display: block; margin-top: 3px; font-family: var(--font-accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-brand > p:first-of-type { margin: 30px 0 9px; font-family: var(--font-accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-brand h1 { margin: 0; font-family: var(--font-display); font-size: clamp(42px, 5vw, 74px); line-height: 1.02; letter-spacing: -.045em; }
.auth-brand h1 span { color: var(--bone); }
.lead { max-width: 580px; margin: 24px 0 0; font-size: 18px; line-height: 1.7; opacity: .9; }
.trust { margin-top: 35px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .omega-icon { color: var(--bone); }

.auth-card { width: min(460px, 82%); margin: auto; padding: 44px 0; }
.mobile-logo { color: var(--deep); }
.mobile-logo .auth-mark { width: 50px; height: 50px; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(51, 89, 125, .1); }
.mobile-logo small { color: var(--muted); }
.eyebrow { margin: 58px 0 7px; color: var(--deep); font-family: var(--font-accent); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.auth-card h2, .workspace-card h1 { margin: 0; color: var(--deep-dark); font-family: var(--font-display); font-size: 36px; letter-spacing: -.025em; }
.subtitle { margin: 8px 0 34px; color: var(--muted); line-height: 1.55; }
label { display: block; margin: 0 0 20px; color: var(--deep-dark); font-size: 12px; font-weight: 800; }
input[type=email], input[type=password] {
    width: 100%;
    margin-top: 8px;
    padding: 16px 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    outline: none;
    box-shadow: 0 6px 18px rgba(51, 89, 125, .035);
}
input::placeholder { color: #74889a; opacity: 1; }
input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(132, 195, 231, .22); }
.remember { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.remember input { accent-color: var(--deep); }
.error { padding: 11px; border: 1px solid rgba(182, 77, 91, .2); border-radius: 10px; color: #9a3241; background: #fff4f5; font-size: 12px; }
button {
    width: 100%;
    min-height: 54px;
    padding: 15px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--deep);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(51, 89, 125, .2);
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
button .omega-icon { margin-left: auto; }
button:hover { background: var(--deep-dark); box-shadow: 0 15px 28px rgba(51, 89, 125, .25); transform: translateY(-1px); }
.security { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 11px; }
.security svg { width: 15px; height: 15px; fill: none; stroke: var(--deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.workspace-shell { min-height: 100vh; padding: 20px; display: grid; place-items: center; background: radial-gradient(circle at top, var(--bone), rgba(132, 195, 231, .18) 55%, #fff); }
.workspace-card { width: min(530px, 100%); padding: 45px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255, 255, 255, .97); box-shadow: 0 25px 70px rgba(51, 89, 125, .14); }
.workspace-card .eyebrow { margin-top: 36px; }
.workspace-option { padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; cursor: pointer; }
.workspace-option:has(input:checked) { border-color: var(--sky); background: rgba(132, 195, 231, .14); box-shadow: inset 0 0 0 1px rgba(132, 195, 231, .2); }
.workspace-option input { accent-color: var(--deep); }
.workspace-option strong, .workspace-option small { display: block; }
.workspace-option small { margin-top: 3px; color: var(--muted); }
.workspace-card form:first-of-type > button { margin-top: 6px; }
.logout-link button { min-height: 44px; margin-top: 10px; color: var(--deep); background: transparent; box-shadow: none; }
.logout-link button:hover { color: var(--deep-dark); background: rgba(132, 195, 231, .13); box-shadow: none; }

@media (max-width: 800px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-card { width: min(100% - 40px, 500px); padding: 38px 0 50px; }
    .workspace-card { padding: 28px; }
    .auth-card h2, .workspace-card h1 { font-size: 30px; }
    .eyebrow { margin-top: 42px; }
}

@media (max-width: 420px) {
    .auth-card { width: min(100% - 28px, 500px); }
    .workspace-shell { padding: 12px; }
    .workspace-card { padding: 24px 20px; border-radius: 24px; }
    .mobile-logo .auth-mark { width: 46px; height: 46px; }
}

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