:root {
    --night: #071421;
    --deep: #0a1b2a;
    --panel: #0d2233;
    --line: #1a4038;
    --ice: #edf6fb;
    --muted: #91a9b8;
    --green: #42d3a1;
    --cyan: #32b8d8;
    --amber: #f2b84b;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
    margin: 0;
    background: var(--night);
    color: var(--ice);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.45;
}

/* ── Split layout ── */
.sentinel-entry {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1.4fr) minmax(380px, .72fr);
}

/* ── Left: capability showcase ── */
.sentinel-showcase {
    padding: 42px clamp(28px, 5vw, 72px) 48px;
    background:
        linear-gradient(90deg, rgba(66,211,161,.04) 1px, transparent 1px) 0 0 / 38px 38px,
        linear-gradient(rgba(66,211,161,.03) 1px, transparent 1px) 0 0 / 38px 38px,
        var(--night);
    display: flex;
    flex-direction: column;
}

.sentinel-mark {
    display: flex; align-items: center; gap: 12px;
    color: var(--ice); text-decoration: none;
    font-size: 24px; letter-spacing: -.02em;
    margin-bottom: 10px;
}
.sentinel-mark img { width: 48px; height: 48px; }
.sentinel-mark strong { color: var(--green); }

.sentinel-tagline {
    color: var(--muted); font-size: 13px;
    margin: 0 0 32px;
}

.sentinel-modules { display: grid; gap: 10px; flex: 1; }

.sentinel-module {
    --accent: var(--green);
    display: grid;
    grid-template-columns: minmax(190px, .7fr) 1.3fr;
    gap: 24px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(66,211,161,.18);
    border-left: 3px solid var(--accent);
    background: rgba(7,20,33,.88);
}

.smod-dns       { --accent: #42d3a1; }
.smod-security  { --accent: #ef6b6b; }
.smod-telemetry { --accent: #32b8d8; }
.smod-threat    { --accent: #a78bfa; }

.sentinel-mod-name { display: flex; align-items: center; gap: 12px; }
.sentinel-mod-name > span {
    display: grid; place-items: center;
    flex: 0 0 38px; height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
    color: var(--accent);
    font-weight: 750; font-size: 12px;
}
.sentinel-mod-name h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.sentinel-mod-name p  { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

.sentinel-module ul {
    columns: 2; column-gap: 28px;
    margin: 0; padding-left: 16px;
    color: #b8d6ca; font-size: 11.5px;
}
.sentinel-module li { margin: 3px 0; break-inside: avoid; }
.sentinel-module li::marker { color: var(--accent); }

.sentinel-footer-left {
    margin-top: auto; padding-top: 28px;
    color: #4a6278; font-size: 11px;
}
.sentinel-footer-left a { color: #7fb3c8; }

/* ── Right: login panel ── */
.sentinel-login-side {
    display: grid; align-items: center;
    padding: 46px clamp(28px, 4vw, 60px);
    background: var(--deep);
    border-left: 1px solid var(--line);
}

.sentinel-login-panel { width: 100%; max-width: 420px; margin: auto; }

.sentinel-login-context { color: var(--muted); font-size: 13px; }
.sentinel-login-context span {
    display: inline-block; width: 8px; height: 8px;
    margin-right: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(66,211,161,.5);
}

.sentinel-login-panel h2 {
    margin: 16px 0 8px;
    font-size: 32px; letter-spacing: -.035em;
}

.sentinel-login-copy { margin: 0 0 28px; color: var(--muted); font-size: 13px; }

.sentinel-login-panel label {
    display: block; margin: 16px 0 6px;
    color: #b8d4c8; font-size: 13px;
}

.sentinel-login-panel input[type="text"],
.sentinel-login-panel input[type="password"] {
    width: 100%; height: 48px;
    padding: 0 14px;
    border: 1px solid #1e4a3d;
    border-radius: 4px; outline: none;
    background: #081a16;
    color: var(--ice); font: inherit;
}

.sentinel-login-panel input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(66,211,161,.12);
}

.sentinel-submit {
    width: 100%; height: 48px;
    margin-top: 22px; border: 0; border-radius: 4px;
    background: var(--green); color: #04211a;
    font-family: inherit; font-size: 14px; font-weight: 750;
    cursor: pointer;
}
.sentinel-submit:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.sentinel-alert {
    margin: 16px 0; padding: 10px 12px;
    border-left: 3px solid #ef6b6b;
    background: rgba(239,107,107,.1);
    font-size: 13px;
}

.sentinel-login-footer {
    display: flex; justify-content: space-between; gap: 20px;
    margin-top: 32px; color: #4e6878; font-size: 11px;
}
.sentinel-login-footer a { color: #8ec1b6; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .sentinel-entry { display: flex; flex-direction: column; }
    .sentinel-login-side { order: -1; min-height: 100vh; border: 0; }
    .sentinel-showcase { padding: 28px 20px; }
    .sentinel-module { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 600px) {
    .sentinel-login-side { padding: 32px 20px; }
    .sentinel-module ul { columns: 1; }
    .sentinel-login-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ============================================
   LIGHT MODE — Sentinel Login
   ============================================ */
[data-theme="light"] {
    --night: #f0f2f5;
    --deep: #fff;
    --panel: #f6f8fa;
    --line: #d0d7de;
    --ice: #1c2938;
    --muted: #656d76;
    --green: #1a7f37;
    --cyan: #0969da;
    --amber: #b45309;
    color-scheme: light;
}

[data-theme="light"] .sentinel-showcase {
    background:
        linear-gradient(90deg, rgba(126,87,255,.06) 1px, transparent 1px) 0 0 / 38px 38px,
        linear-gradient(rgba(126,87,255,.04) 1px, transparent 1px) 0 0 / 38px 38px,
        #f0f2f5;
}

[data-theme="light"] .sentinel-mark strong { color: #1a7f37; }
[data-theme="light"] .sentinel-module {
    border-color: #d0d7de;
    background: rgba(255,255,255,.85);
}
[data-theme="light"] .sentinel-module ul { color: #3d4752; }
[data-theme="light"] .sentinel-mod-name h2 { color: #1c2938; }

[data-theme="light"] .sentinel-login-side {
    background: #fff; border-left-color: #d0d7de;
}
[data-theme="light"] .sentinel-login-panel h2 { color: #1c2938; }
[data-theme="light"] .sentinel-login-panel label { color: #3d4752; }
[data-theme="light"] .sentinel-login-panel input[type="text"],
[data-theme="light"] .sentinel-login-panel input[type="password"] {
    background: #f6f8fa; border-color: #d0d7de; color: #1c2938;
}
[data-theme="light"] .sentinel-login-panel input:focus {
    border-color: #1a7f37;
    box-shadow: 0 0 0 3px rgba(26,127,55,.12);
}
[data-theme="light"] .sentinel-submit {
    background: #1a7f37; color: #fff;
}
[data-theme="light"] .sentinel-login-context span {
    background: #1a7f37;
    box-shadow: 0 0 12px rgba(26,127,55,.4);
}
[data-theme="light"] .sentinel-footer-left { color: #8b949e; }
[data-theme="light"] .sentinel-footer-left a { color: #0969da; }
[data-theme="light"] .sentinel-login-footer { color: #8b949e; }
[data-theme="light"] .sentinel-login-footer a { color: #0969da; }
