/* ============================================================
   Sign in — eTernity TMS v15 (NewLayout/eternity-tms-v15.html, SIGN IN)
   Used by Views/Account/LoginAppPage.cshtml and LoginPage.cshtml.
   Always dark navy: this is the front door, not a working surface.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.lo-body {
    margin: 0; background: #04121F; color: #DCEAF6;
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.lo-body button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.lo-body :focus-visible { outline: 2px solid #3FA6E8; outline-offset: 2px; border-radius: 4px; }

.login {
    min-height: 100vh; display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(392px, .88fr);
}

/* ---------- hero ---------- */
.lo-hero {
    position: relative; overflow: hidden; background:
        radial-gradient(900px 640px at 64% 46%, rgba(30,134,208,.20) 0%, transparent 62%),
        linear-gradient(155deg, #072742 0%, #04121F 54%, #020B14 100%);
}
#globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lo-veil {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(4,18,31,.80) 0%, rgba(4,18,31,.16) 42%, rgba(4,18,31,.46) 100%),
        linear-gradient(0deg, rgba(4,18,31,.94) 0%, rgba(4,18,31,.55) 26%, transparent 48%);
}
/* a slow sweep, like a radar pass over the board */
.lo-scan {
    position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(105deg, transparent 42%, rgba(63,166,232,.10) 50%, transparent 58%);
    background-size: 260% 100%; animation: loScan 9s ease-in-out infinite;
}
@keyframes loScan { 0% { background-position: 170% 0 } 55%, 100% { background-position: -70% 0 } }

.lo-heroin { position: relative; height: 100%; min-height: 100vh; display: flex; flex-direction: column; padding: 36px 44px 34px; }
.lo-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.lo-mark { width: 66px; height: 36px; }
.lo-brandtxt b {
    display: block; font-family: Archivo, sans-serif; font-weight: 800; font-size: 18px;
    color: #fff; letter-spacing: -.015em; line-height: 1.05;
}
.lo-brandtxt span { font-size: 9px; letter-spacing: .21em; text-transform: uppercase; color: #5E8FB8; font-weight: 600; }

.lo-copy { margin-top: auto; max-width: 560px; }
.lo-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
    font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .12em;
    text-transform: uppercase; color: #6EDCA8; font-weight: 600;
    border: 1px solid rgba(110,220,168,.28); background: rgba(110,220,168,.07);
    padding: 5px 11px; border-radius: 20px;
}
.lo-eyebrow i {
    width: 6px; height: 6px; border-radius: 50%; background: #6EDCA8; flex: none;
    animation: loBlip 2.4s ease-in-out infinite;
}
@keyframes loBlip {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(110,220,168,.55) }
    55% { opacity: .55; box-shadow: 0 0 0 7px rgba(110,220,168,0) }
}
.lo-copy h1 {
    font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(30px, 3.5vw, 50px);
    line-height: 1.04; letter-spacing: -.03em; color: #fff; margin: 0 0 14px; text-wrap: balance;
}
.lo-copy h1 em {
    font-style: normal;
    background: linear-gradient(92deg, #3FA6E8 0%, #7FD4F5 48%, #6EDCA8 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lo-lede { margin: 0; font-size: 15.5px; line-height: 1.6; color: #9FC0DA; max-width: 490px; }

/* ---------- sign-in pane ---------- */
.lo-pane {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: linear-gradient(180deg, #071C2E 0%, #04121F 100%);
    border-left: 1px solid rgba(63,166,232,.18); padding: 22px 40px 20px;
}
.lo-pane::before {
    content: ""; position: absolute; left: -1px; top: 12%; bottom: 12%; width: 1px;
    background: linear-gradient(180deg, transparent, #3FA6E8, transparent); opacity: .65;
}

.lo-card { margin: auto 0; width: 100%; max-width: 396px; align-self: center; padding: 6px 0; }
.lo-card h2 { font-family: Archivo, sans-serif; font-size: 27px; font-weight: 800; color: #fff; letter-spacing: -.025em; margin: 0; }
.lo-sub { margin: 6px 0 24px; font-size: 13.5px; color: #7FA8C8; }
.lo-sub b { color: #DCEAF6; font-weight: 600; word-break: break-all; }

.lo-f {
    display: block; font-family: Archivo, sans-serif; font-size: 9px; letter-spacing: .13em;
    text-transform: uppercase; color: #6E93B4; font-weight: 700; margin: 0 0 6px;
}
.lo-input {
    display: flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px; padding: 0 12px; transition: border-color .18s, box-shadow .18s, background .18s;
}
.lo-input:focus-within { border-color: #3FA6E8; background: rgba(63,166,232,.10); box-shadow: 0 0 0 3px rgba(63,166,232,.18); }
.lo-input svg { width: 15px; height: 15px; color: #5E8FB8; flex: none; }
.lo-input input {
    flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff;
    font-size: 14.5px; padding: 11px 0; font-family: inherit; box-shadow: none;
}
.lo-input input::placeholder { color: #4E7291; }
/* the .lo-input box shows focus (:focus-within), so the field itself needs no second ring */
.lo-input input:focus, .lo-input input:focus-visible { outline: none; }
.lo-input input:-webkit-autofill {
    -webkit-text-fill-color: #fff; transition: background-color 9999s ease-out 0s;
}
.lo-input.has-error { border-color: #E4796A; }
.lo-eye {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #5E8FB8; flex: none; padding: 4px;
}
.lo-eye:hover { color: #3FA6E8; }
.lo-field { margin-bottom: 16px; }
.lo-err, .lo-field label.error {
    display: block; margin: 6px 0 0; font-size: 12.5px; color: #F0A093; font-weight: 500;
}

.lo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 20px; }
.lo-link { font-size: 13px; color: #3FA6E8; font-weight: 600; text-decoration: none; }
.lo-link:hover { color: #7FD4F5; text-decoration: underline; }

.lo-go {
    position: relative; overflow: hidden; width: 100%; display: flex; align-items: center;
    justify-content: center; gap: 9px; padding: 13px; border-radius: 9px; font-weight: 700; font-size: 15px;
    color: #fff !important; background: linear-gradient(94deg, #1571B8, #1E86D0 52%, #2F9BE0) !important;
    box-shadow: 0 8px 26px -10px rgba(30,134,208,.9); transition: transform .15s, box-shadow .2s;
}
.lo-go svg { width: 16px; height: 16px; }
.lo-go:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(30,134,208,1); }
.lo-go:active { transform: translateY(0); }
.lo-go::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 38%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
    left: -45%; animation: loSheen 3.6s ease-in-out infinite;
}
@keyframes loSheen { 0% { left: -45% } 55%, 100% { left: 125% } }
.lo-go.busy { pointer-events: none; opacity: .85; }
.lo-go.busy span::after { content: "…"; }

.lo-alert {
    display: flex; gap: 9px; align-items: flex-start; margin: 0 0 18px; padding: 10px 12px;
    border-radius: 8px; font-size: 13px; line-height: 1.45;
    background: rgba(228,121,106,.10); border: 1px solid rgba(228,121,106,.35); color: #F4C1B8;
}
.lo-alert.ok { background: rgba(110,220,168,.08); border-color: rgba(110,220,168,.32); color: #BFEBD5; }
.lo-alert ul { margin: 0; padding: 0; list-style: none; }
.lo-alert svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.lo-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; color: #7FA8C8; text-decoration: none; }
.lo-back:hover { color: #fff; }

.lo-fine { display: flex; gap: 8px; margin: 22px 0 0; font-size: 11.5px; line-height: 1.5; color: #6E93B4; }
.lo-fine svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: #6EDCA8; }

.lo-foot {
    display: flex; align-items: center; gap: 10px; flex: none; flex-wrap: wrap;
    font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; color: #4E7291;
    letter-spacing: .06em; padding-top: 16px;
}

/* step panes (password → one-time code) */
.lo-step[hidden] { display: none !important; }

/* existing jquery.notifyBar toasts, in the v15 palette */
.jquery-notify-bar { font-family: "Source Sans 3", sans-serif !important; font-size: 14px !important; }

/* page loader overlay kept from the old page */
#loading { position: fixed; inset: 0; display: none; z-index: 99; background: rgba(4,18,31,.55); }
#loading-image { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; }

/* ---------- narrow ---------- */
@media (max-width: 980px) {
    .login { grid-template-columns: 1fr; grid-template-rows: 300px auto; align-content: start; }
    .lo-hero { height: 300px; min-height: 0; }
    .lo-heroin { height: auto; min-height: 0; padding: 24px 24px 26px; }
    .lo-copy { margin-top: 38px; }
    .lo-copy h1 { font-size: clamp(27px, 7.6vw, 38px); }
    .lo-lede { font-size: 14.5px; }
    #globe { opacity: .55; }
    .lo-veil {
        background: linear-gradient(0deg, rgba(4,18,31,.96) 0%, rgba(4,18,31,.74) 34%, rgba(4,18,31,.30) 72%, rgba(4,18,31,.55) 100%);
    }
    .lo-pane { border-left: 0; border-top: 1px solid rgba(63,166,232,.2); padding: 18px 24px 22px; }
    .lo-pane::before { display: none; }
    .lo-card { margin: 20px auto; }
}
@media (max-width: 420px) {
    .login { grid-template-rows: 250px auto; }
    .lo-hero { height: 250px; }
    .lo-lede { display: none; }
    .lo-pane { padding: 14px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .lo-scan, .lo-eyebrow i, .lo-go::after { animation: none; }
    .lo-go, .lo-input { transition: none; }
}
