/* ══════════════════════════════════════════════
   Sibasi Sentinel — login.css
   Split sign-in card. Shares the landing page's
   Sibasi blue palette.
   ══════════════════════════════════════════════ */

:root {
    --b-ink:  #082a4d;
    --b-deep: #0b3966;
    --b1:     #0070c0;
    --b2:     #2e75b6;
    --b3:     #9dc3e6;
    --b-tint: #e9f2fb;

    --night:  #071526;
    --paper:  #f7f8fa;
    --txt:    #0f1b2b;
    --muted:  #5a6676;
    --line:   #dfe5ec;

    --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
body {
    min-height: 100vh; display: grid; place-items: center; padding: 32px 24px;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.6;
    color: var(--txt); -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(80% 60% at 15% 0%, #1d3f63 0%, transparent 60%),
        linear-gradient(180deg, #0d2441 0%, #081a30 100%);
}
a { color: inherit; text-decoration: none }
svg { display: block; flex-shrink: 0 }
:focus-visible { outline: 2px solid var(--b3); outline-offset: 3px; border-radius: 6px }

/* ── CARD ── */
.card {
    position: relative; width: 100%; max-width: 1040px; min-height: 580px;
    display: grid; grid-template-columns: 1.15fr 1fr;
    border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(157,195,230,.18);
    box-shadow: 0 40px 80px -24px rgba(0,0,0,.55);
}

/* ── LEFT: brand panel ── */
.brand-panel { position: relative; background: var(--night); color: #fff; overflow: hidden }

/* Night-time glazing drawn in CSS: dusk sky, ridgeline, window mullions */
.scene { position: absolute; inset: 0 }
.scene .sky {
    position: absolute; top: 8%; bottom: 22%; left: 64%; right: -10%;
    background: linear-gradient(180deg, #0b2440 0%, #1c4f80 52%, #6fa6d6 82%, #b9d6ef 100%);
}
.scene .ridge { position: absolute; left: 64%; bottom: 22%; height: 26%; width: 46% }
.scene .floor {
    position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
    background: linear-gradient(180deg, #0c1c30 0%, #060f1c 100%);
}
.scene .floor::before {   /* reflection of the horizon on the floor */
    content: ''; position: absolute; left: 66%; right: 0; top: 0; height: 60%;
    background: linear-gradient(180deg, rgba(157,195,230,.22), transparent);
}
.scene .mullions {
    position: absolute; top: 8%; bottom: 22%; left: 64%; right: -10%;
    background:
        linear-gradient(90deg, #050d18 0 10px, transparent 10px) 0 0 / 28% 100% repeat-x,
        linear-gradient(180deg, #050d18 0 12px, transparent 12px);
}
.scene .ceiling {
    position: absolute; top: 0; left: 0; right: 0; height: 8%;
    background: linear-gradient(180deg, #030a14, #0a1828);
}
.scene .shade {   /* keeps the copy readable over the scene */
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(7,21,38,.98) 0%, rgba(7,21,38,.95) 60%, rgba(7,21,38,.45) 74%, transparent 88%);
}

.brand-copy {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; padding: 40px 44px;
}
.mark { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; letter-spacing: -.01em }
.brand-body { margin: auto 0; padding: 32px 0 0 }
.eyebrow {
    display: block; font-size: 12px; font-weight: 500; letter-spacing: .28em;
    text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 14px;
}
.brand-body h1 {
    font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; font-weight: 600;
    letter-spacing: -.02em; max-width: 12em; text-wrap: balance;
}
.brand-body h1 span { color: var(--b3) }
.brand-body > p { margin-top: 14px; max-width: 27em; color: rgba(255,255,255,.75); font-size: 15px }
.features { list-style: none; margin-top: 28px; display: grid; gap: 16px; max-width: 22em }
.features li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start }
.f-ico {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(157,195,230,.12); border: 1px solid rgba(157,195,230,.18); color: var(--b3);
}
.features b { display: block; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3 }
.features span { display: block; font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.45; margin-top: 2px }

/* ── RIGHT: sign-in panel ── */
.signin { position: relative; background: var(--paper); display: flex; flex-direction: column; padding: 32px 44px 36px }

/* Curved seam between the two halves */
.seam { position: absolute; top: -1px; right: calc(100% - 1px); width: 120px; height: calc(100% + 2px); color: var(--paper) }

.signin::after {   /* soft circles, bottom right */
    content: ''; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(157,195,230,.45), rgba(157,195,230,.18) 70%);
    box-shadow: -120px 60px 0 -40px rgba(157,195,230,.18);
    pointer-events: none;
}

.back {
    align-self: flex-end; display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 500; color: var(--b-ink); transition: color .15s;
}
.back:hover { color: var(--b1) }
.back svg { transition: transform .15s var(--ease) }
.back:hover svg { transform: translateX(-3px) }

.signin-body { position: relative; z-index: 1; margin: auto 0; width: 100%; max-width: 360px; padding-top: 16px }
.signin h2 { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--b-ink) }
.signin-sub { margin-top: 6px; color: var(--muted); font-size: 15px }

.btn-ms {
    margin-top: 24px; width: 100%; height: 52px; padding: 0 20px; border-radius: 12px;
    display: flex; align-items: center; gap: 14px;
    background: var(--b-ink); color: #fff; font: 500 15px/1 'Outfit', sans-serif;
    transition: background .15s var(--ease);
}
.btn-ms:hover { background: var(--b-deep) }
.btn-ms .arrow { margin-left: auto; transition: transform .15s var(--ease) }
.btn-ms:hover .arrow { transform: translateX(3px) }

.note {
    display: flex; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--muted);
}
.note svg { color: var(--b-ink); margin-top: 2px }

/* What happens when you sign in */
.expect { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line) }
.expect h3 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--b-ink) }
.expect ol { list-style: none; margin-top: 14px; display: grid; gap: 12px; counter-reset: x }
.expect li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.5 }
.expect li::before {
    counter-increment: x; content: counter(x);
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: var(--b-tint); color: var(--b1); font-size: 12px; font-weight: 600;
}
.expect li b { color: var(--txt); font-weight: 600 }
.help { margin-top: 22px; font-size: 13px; color: var(--muted) }

/* Flash messages */
.alerts { display: grid; gap: 10px; margin-top: 24px }
.alert {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px;
    font-size: 14px; font-weight: 500; border: 1px solid;
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.alert span { flex: 1 }
.alert button { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 18px; line-height: 1 }
.alert button:hover { opacity: 1 }
.alert-success { background: #e3f5ec; border-color: #a6dcc2; color: #11744f }
.alert-error   { background: #fde9ea; border-color: #f3b4b9; color: #a8343f }
.alert-warning { background: #fdf2e0; border-color: #f2cf8f; color: #8f5a0b }
.alert-info    { background: var(--b-tint); border-color: var(--b3); color: var(--b-deep) }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    body { padding: 24px 16px; place-items: start center }
    .card { grid-template-columns: 1fr; min-height: 0 }
    .brand-copy { padding: 36px 32px 40px }
    .brand-body { padding-top: 32px }
    .features { display: none }
    .card { max-width: 560px }
    .seam { display: none }
    .signin { padding: 28px 32px 40px }
    .signin-body { margin: 24px 0 8px; max-width: none }
}
@media (max-width: 480px) {
    body { padding: 0 }
    .card { border-radius: 0; border: 0; min-height: 100vh; grid-template-rows: auto 1fr }
    .brand-copy { padding: 28px 20px 32px }
    .brand-body h1 { font-size: 32px }
    .brand-body p { font-size: 15px }
    .signin { padding: 24px 20px 40px }
    .signin h2 { font-size: 30px }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important }
}
