/* ---------------------------------------------------------------------------
   login.css — sign-in screen.

   Left panel stays dark, matching the navigation rail, so the product's one
   dark surface is consistent. The form side is light like the rest of the app.
   The panel is a console readout rather than marketing copy: it states what
   the engine actually looks for, in the same monospace idiom used for data.
--------------------------------------------------------------------------- */

.login-body { min-height: 100vh; margin: 0; background: var(--bg); }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
}

/* --- left: dark console panel -------------------------------------------- */
.login-brandside {
    position: relative;
    overflow: hidden;
    padding: 54px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(72% 56% at 12% 10%, rgba(46, 230, 168, .11), transparent 62%),
        radial-gradient(60% 50% at 92% 92%, rgba(56, 189, 248, .07), transparent 60%),
        var(--side-bg);
}

.login-brandside::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(80% 70% at 20% 20%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(80% 70% at 20% 20%, #000 20%, transparent 78%);
}

.login-brandside > * { position: relative; z-index: 1; }

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--r);
    background: var(--side-accent);
    color: #04140e;
    display: grid;
    place-items: center;
    font-size: 16px;
    margin-bottom: 26px;
}

.login-brandside h1 {
    font-size: 31px;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.028em;
    margin: 0 0 14px;
    color: var(--side-fg);
}

.login-brandside h1 em {
    font-style: normal;
    color: var(--side-accent);
}

.login-brandside > p {
    font-size: 13.5px;
    line-height: 1.68;
    max-width: 430px;
    color: var(--side-muted);
    margin: 0;
}

/* Detector readout — the visual anchor of the panel. */
.console-readout {
    margin-top: 30px;
    border: 1px solid var(--side-line);
    border-radius: var(--r);
    background: rgba(8, 12, 18, .55);
    overflow: hidden;
    max-width: 470px;
}

.console-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--side-line);
    background: var(--side-surface);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--side-dim);
}

.console-head span:first-child {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--side-accent);
}

.console-rows { padding: 4px 0; }

.console-row {
    display: grid;
    grid-template-columns: 15px 1fr auto;
    gap: 9px;
    align-items: center;
    padding: 5.5px 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--side-muted);
}

.console-row i { color: var(--side-dim); font-size: 9.5px; text-align: center; }
.console-row b { font-weight: 400; color: var(--side-fg); }
.console-row em {
    font-style: normal;
    font-size: 9.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 3px;
}
.console-row em.crit { color: #ff8098; background: rgba(255, 77, 109, .14); }
.console-row em.high { color: #ffb672; background: rgba(255, 159, 67, .14); }
.console-row em.ok   { color: var(--side-accent); background: rgba(46, 230, 168, .13); }

/* --- right: light form --------------------------------------------------- */
.login-formside {
    display: grid;
    place-items: center;
    padding: 40px 24px;
    background: var(--surface);
}

.login-card { width: 100%; max-width: 352px; }

.login-card .eyebrow { display: block; margin-bottom: 7px; }

.login-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
    letter-spacing: -.02em;
}

.login-sub { color: var(--fg-muted); font-size: 12.5px; margin-bottom: 24px; }

.login-card .form-control { padding: 8px 10px; font-size: 13px; }
.login-card .input-group-text { padding: 8px 11px; }

.login-card .input-group > .form-control { border-left: 0; }
.login-card .input-group > .input-group-text:first-child { border-right: 0; }

.login-card .btn-success {
    padding: 9px 12px;
    font-size: 13px;
    width: 100%;
}

.login-foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--fg-dim);
    text-align: center;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brandside { display: none; }
    .login-formside { background: var(--bg); }
}
