/* ============================================================
   Live Compliance — shared auth shell (feat: unified-auth-shell, 2026-08)

   One shell worn by every centred auth screen:
     terms_and_conditions.php · reset_password.php ·
     forgot_password.php · new_password.php

   signin.php is DELIBERATELY NOT on this shell. Its split-screen
   layout was signed off as-is (Jim, 2026-08-07) and keeps its own
   page-scoped #lc-auth layer. The only thing it borrows from here
   is the .lc-status line at the bottom of this file.

   Everything is namespaced under .lc-auth-shell so it cannot leak
   into the app pages, which load the same global stylesheets.

   ── The one rule that matters most ──────────────────────────
   The card is capped with max-width, NOT sized with Bootstrap
   column classes. Those pages used col-xl-4 / col-xl-6, and a
   column is a percentage of the viewport — on a 27" Studio
   Display the terms card rendered ~1280px wide and would grow
   further on anything larger. A cap holds the design still on
   big monitors while the width:100% below keeps it fluid on
   phones.
   ============================================================ */

/* The backdrop is painted on BOTH the body and the shell.
   On the body so that rubber-band overscroll and any short page cannot flash
   the theme's light background; on the shell because that is the element the
   pages actually wrap their content in. */
body.lc-auth-body,
.lc-auth-shell {
    background:
        radial-gradient(1100px 520px at 50% -8%, rgba(117, 178, 244, .30), transparent 60%),
        radial-gradient(820px 560px at 115% 120%, rgba(13, 47, 102, .55), transparent 55%),
        linear-gradient(150deg, #0c2c61 0%, #1a448a 52%, #2a5ba6 100%);
    background-attachment: fixed;
}

.lc-auth-shell {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* padding-top, NOT a top margin on the logo. A child's top margin
       collapses straight through a parent with no top padding or border,
       which pushed the whole shell down and left a band of the theme's
       light background across the top of every one of these pages. */
    padding: 46px 20px 60px;
}

.lc-auth-shell *,
.lc-auth-shell *::before,
.lc-auth-shell *::after { box-sizing: border-box; }

/* ── Logo ─────────────────────────────────────────────────────
   240px, matching signin.php, which is the size Jim picked. The
   max-width keeps it from crowding the card on a narrow phone. */
.lc-auth-shell .lc-auth-logo {
    text-align: center;
    margin: 0 0 26px;
}
.lc-auth-shell .lc-auth-logo img {
    width: 240px;
    max-width: 60%;
    height: auto;
}

/* ── Card ─────────────────────────────────────────────────────
   Two caps, not one: the terms screen carries real copy and needs
   580px, while a lone email field looks lost in anything that
   wide, so the sign-in/password screens use 440px. */
.lc-auth-shell .lc-auth-card {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    background: #fff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 24px 60px -22px rgba(8, 24, 56, .55), 0 6px 18px rgba(8, 24, 56, .18);
    padding: 34px 34px 30px;
}
.lc-auth-shell .lc-auth-card.lc-auth-narrow { max-width: 440px; }

@media (max-width: 575.98px) {
    .lc-auth-shell { padding: 34px 14px 44px; }
    .lc-auth-shell .lc-auth-card { padding: 26px 22px 24px; border-radius: 16px; }
    .lc-auth-shell .lc-auth-logo { margin: 0 0 22px; }
}

.lc-auth-shell .lc-auth-card h1,
.lc-auth-shell .lc-auth-card h3 {
    font-size: 21px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 5px;
    letter-spacing: -.01em;
    color: #0f172a;
}
.lc-auth-shell .lc-auth-sub {
    text-align: center;
    color: #64748b;
    font-size: 13.5px;
    margin: 0 0 24px;
    line-height: 1.55;
}
.lc-auth-shell .lc-auth-copy {
    font-size: 14px;
    line-height: 1.65;
    color: #1e293b;
    margin: 0 0 18px;
}

/* ── Fields ───────────────────────────────────────────────── */
.lc-auth-shell .lc-auth-field { margin-bottom: 15px; }
.lc-auth-shell .lc-auth-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.lc-auth-shell .lc-auth-field input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #dbe2ea;
    border-radius: 11px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    background: #f7f9fc;
    color: #0f172a;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.lc-auth-shell .lc-auth-field input::placeholder { color: #a6b2c4; }
.lc-auth-shell .lc-auth-field input:focus {
    outline: none;
    border-color: #1a448a;
    box-shadow: 0 0 0 4px rgba(26, 68, 138, .12);
    background: #fff;
}

/* ── Buttons ──────────────────────────────────────────────── */
.lc-auth-shell .lc-auth-btn {
    border: 0;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 12px 22px;
    transition: background .15s, transform .12s, box-shadow .15s;
}
.lc-auth-shell .lc-auth-btn-primary {
    background: #1a448a;
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(26, 68, 138, .6);
}
.lc-auth-shell .lc-auth-btn-primary:hover:not(:disabled) {
    background: #153872;
    transform: translateY(-1px);
}
.lc-auth-shell .lc-auth-btn-primary:disabled {
    background: #b9c6da;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.lc-auth-shell .lc-auth-btn-ghost {
    background: #fff;
    color: #475569;
    border: 1px solid #dbe2ea;
}
.lc-auth-shell .lc-auth-btn-ghost:hover { background: #f8fafc; color: #0f172a; }
.lc-auth-shell .lc-auth-btn-full { width: 100%; height: 48px; padding: 0; }

.lc-auth-shell .lc-auth-rule { height: 1px; background: #e8ecf1; margin: 22px 0 18px; }
.lc-auth-shell .lc-auth-fine {
    text-align: center;
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}
.lc-auth-shell .lc-auth-fine a { color: #1a448a; }
.lc-auth-shell .lc-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 11px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
    text-align: center;
}
.lc-auth-shell .lc-auth-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 11px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
    text-align: center;
}

/* ── Footer ───────────────────────────────────────────────────
   Translucent text directly on the backdrop — never a second
   card. The old terms page wrapped this in a white card, which
   is the "bento card at the bottom doesn't look right" Jim
   flagged; the staff portal has always done it this way. */
.lc-auth-shell .lc-auth-foot {
    text-align: center;
    color: rgba(255, 255, 255, .82);
    width: 100%;
    max-width: 580px;
    margin: 26px auto 0;
}
.lc-auth-shell .lc-auth-foot p { margin: 0 0 8px; line-height: 1.55; }
.lc-auth-shell .lc-auth-foot-help { font-size: 13px; }
.lc-auth-shell .lc-auth-foot a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .45);
    transition: border-color .15s;
}
.lc-auth-shell .lc-auth-foot a:hover { border-bottom-color: #fff; }
.lc-auth-shell .lc-auth-foot-disclaimer {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
    max-width: 540px;
    margin: 16px auto 6px;
    line-height: 1.55;
}
.lc-auth-shell .lc-auth-foot-copyright {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .5);
    margin: 0;
}

/* ── Status line ──────────────────────────────────────────────
   Rendered by lc_render_status_line() (php/inc/platform_status.php).
   Deliberately OUTSIDE the .lc-auth-shell namespace: signin.php
   keeps its own layout but uses this same component, so the two
   surfaces cannot drift apart.

   .lc-status         — white text, for the dark backdrop
   .lc-status-dark    — coloured text, for signin.php's white panel

   The five tones map 1:1 onto BetterStack's aggregate_state.
   Grey is what an unreachable status page looks like: it says
   "System status" and makes no promise. */
.lc-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none !important;
    color: #fff;
}
.lc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.lc-status-ok   .lc-status-dot { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.lc-status-deg  .lc-status-dot { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .25); }
.lc-status-down .lc-status-dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .25); }
.lc-status-mnt  .lc-status-dot { background: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, .25); }
.lc-status-unk  .lc-status-dot { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, .22); }

/* On the white panel the label itself carries the colour. */
.lc-status-dark { font-size: 12px; }
.lc-status-dark.lc-status-ok   { color: #047857; }
.lc-status-dark.lc-status-deg  { color: #92400e; }
.lc-status-dark.lc-status-down { color: #b91c1c; }
.lc-status-dark.lc-status-mnt  { color: #1d4ed8; }
.lc-status-dark.lc-status-unk  { color: #64748b; }
