/* Extracted from login.php | cacheable, browser-cached */
:root {
            --primary: #1e4b7a;
            --accent: #2563eb;
        }
        * { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; box-sizing: border-box; margin: 0; padding: 0; }
        .font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }

        [data-theme="dark"] {
            --bg-base: #0f172a;
            --bg-secondary: #1e293b;
            --bg-tertiary: #0f172a;
            --text-base: #e2e8f0;
            --text-strong: #f1f5f9;
            --text-muted: #94a3b8;
            --text-subtle: #64748b;
            --text-faint: #475569;
            --bg-card: #1e293b;
            --bg-card-hover: rgba(255,255,255,0.06);
            --border-base: #334155;
            --border-hover: #475569;
            --glass-bg: rgba(15,23,42,0.8);
            --glass-light-bg: rgba(255,255,255,0.92);
            --glass-light-text: #1e293b;
            --glass-light-muted: #64748b;
            --blueprint-line: rgba(59,130,246,0.06);
            --blueprint-line-fine: rgba(59,130,246,0.03);
            --grid-overlay: rgba(59,130,246,0.04);
            --input-bg: #334155;
            --input-text: #f1f5f9;
            --input-border: #475569;
            --input-muted: #94a3b8;
            --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 4px 24px rgba(0,0,0,0.2);
            --brand-text: #60a5fa;
        }
        [data-theme="light"] {
            --bg-base: #f0f4f8;
            --bg-secondary: #ffffff;
            --bg-tertiary: #e2e8f0;
            --text-base: #1e293b;
            --text-strong: #0f172a;
            --text-muted: #475569;
            --text-subtle: #64748b;
            --text-faint: #94a3b8;
            --bg-card: #ffffff;
            --bg-card-hover: rgba(15,23,42,0.04);
            --border-base: #e2e8f0;
            --border-hover: #cbd5e1;
            --glass-bg: rgba(255,255,255,0.85);
            --glass-light-bg: rgba(255,255,255,0.95);
            --glass-light-text: #1e293b;
            --glass-light-muted: #64748b;
            --blueprint-line: rgba(59,130,246,0.06);
            --blueprint-line-fine: rgba(59,130,246,0.02);
            --grid-overlay: rgba(59,130,246,0.03);
            --input-bg: #ffffff;
            --input-text: #1e293b;
            --input-border: #e2e8f0;
            --input-muted: #94a3b8;
            --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
            --brand-text: #1e4b7a;
        }
        .bs-brand-text { color: var(--brand-text) !important; }

        .bg-base { background-color: var(--bg-base); }
        .bg-secondary { background-color: var(--bg-secondary); }
        .text-base-c { color: var(--text-base); }
        .text-strong { color: var(--text-strong); }
        .text-muted-c { color: var(--text-muted); }
        .text-subtle-c { color: var(--text-subtle); }
        .text-faint-c { color: var(--text-faint); }
        .bg-card { background-color: var(--bg-card); }
        .border-base-c { border-color: var(--border-base); }
        .shadow-card { box-shadow: var(--shadow-card); }

        .glass { backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); background: var(--glass-bg); }
        .glass-light { backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); background: var(--glass-light-bg); }

        .blueprint-bg {
            background-color: var(--bg-base);
            background-image:
                linear-gradient(var(--blueprint-line) 1px, transparent 1px),
                linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
                linear-gradient(var(--blueprint-line-fine) 1px, transparent 1px),
                linear-gradient(90deg, var(--blueprint-line-fine) 1px, transparent 1px);
            background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
        }

        .gear { animation: gearSpin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
        .gear-reverse { animation: gearSpin 32s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
        .gear-fast { animation: gearSpin 24s linear infinite; transform-box: fill-box; transform-origin: center; }
        @keyframes gearSpin { to { transform: rotate(360deg); } }

        .left-gear-stack {
            position: absolute;
            left: 24px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 2;
            pointer-events: none;
        }
        .left-gear-stack svg { display: block; }

        .window-light { animation: windowBlink 7s ease-in-out infinite; }
        .window-light-2 { animation: windowBlink 8s ease-in-out infinite -2s; }
        .window-light-3 { animation: windowBlink 9s ease-in-out infinite -4s; }
        @keyframes windowBlink {
            0%, 100% { opacity: 0.45; }
            50% { opacity: 0.9; }
        }

        .elevator { animation: elevatorMove 10s cubic-bezier(0.4,0,0.2,1) infinite; }
        @keyframes elevatorMove {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-55px); }
        }

        .worker-move { animation: workerMove 14s cubic-bezier(0.4,0,0.2,1) infinite; }
        @keyframes workerMove {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(20px); }
        }

        .flow-line {
            stroke-dasharray: 6 5;
            animation: flowDash 4s linear infinite;
        }
        @keyframes flowDash { to { stroke-dashoffset: -22; } }

        .badge-tag-1 { animation: badgeFloat 7s ease-in-out infinite; }
        .badge-tag-2 { animation: badgeFloat 7s ease-in-out infinite -1.2s; }
        .badge-tag-3 { animation: badgeFloat 7s ease-in-out infinite -2.4s; }
        .badge-tag-4 { animation: badgeFloat 7s ease-in-out infinite -3.6s; }
        .badge-tag-5 { animation: badgeFloat 7s ease-in-out infinite -0.6s; }
        .badge-tag-6 { animation: badgeFloat 7s ease-in-out infinite -1.8s; }
        @keyframes badgeFloat {
            0%, 100% { transform: translateY(0); opacity: 0.7; }
            50% { transform: translateY(-2px); opacity: 0.95; }
        }

        .hub-pulse { animation: hubPulse 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
        @keyframes hubPulse {
            0%, 100% { transform: scale(1); opacity: 0.65; }
            50% { transform: scale(1.08); opacity: 0.9; }
        }

        .integration-line {
            stroke-dasharray: 4 4;
            animation: connectDash 5s linear infinite;
        }
        @keyframes connectDash { to { stroke-dashoffset: -16; } }

        .gradient-text {
            background: linear-gradient(90deg, #60a5fa, #a78bfa, #60a5fa);
            background-size: 200% auto;
            -webkit-background-clip: text; background-clip: text; color: transparent;
            animation: shimmer 6s linear infinite;
        }
        @keyframes shimmer { to { background-position: 200% center; } }

        body {
            min-height: 100vh;
            overflow-x: hidden;
            background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #dce5ef 100%);
        }

        .login-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 48px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid var(--border-base);
        }

        .login-nav-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--text-strong);
        }

        .login-nav-brand span {
            font-size: 1.1rem;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .login-hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 80px 48px 40px;
            overflow: hidden;
        }

    .login-hero-content {
        position: relative;
        z-index: 5;
        display: grid;
        grid-template-columns: 1fr minmax(380px, 460px);
        align-items: center;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 48px;
        gap: 60px;
    }

    .login-hero-svg-wrap {
        position: relative;
        width: 100%;
        max-width: 460px;
        margin: 0 auto 0 -36px;
    }

    .login-hero-svg-wrap svg {
        width: 100%;
        height: auto;
        position: relative;
        z-index: 2;
    }

    .login-card {
            width: 100%;
            max-width: 560px;
            background: var(--bg-card);
            border: 1px solid var(--border-base);
            border-radius: 16px;
            padding: 36px 32px;
            box-shadow: var(--shadow-card);
        }

        .login-card h3 {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--text-strong);
            margin-bottom: 4px;
            text-align: center;
        }

        .login-card-sub {
            font-size: 0.875rem;
            color: var(--text-muted);
            margin-bottom: 24px;
            text-align: center;
        }

        .login-form-group {
            margin-bottom: 16px;
        }

        .login-form-group label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 6px;
        }

        .login-input-wrap {
            display: flex;
            align-items: center;
            border: 1px solid var(--border-base);
            border-radius: 10px;
            background: var(--input-bg);
            overflow: hidden;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .login-input-wrap:focus-within {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

    .login-form-control {
            flex: 1;
            border: 0;
            padding: 12px 14px;
            font-size: 0.875rem;
            color: var(--input-text);
            background: transparent;
            outline: none;
        }

        .login-form-control::placeholder {
            color: var(--input-muted);
        }

        .login-input-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 12px;
            color: var(--input-muted);
            cursor: pointer;
            transition: color 0.2s ease;
            border: 0;
            background: transparent;
        }

        .login-input-icon:hover {
            color: #6b7280;
        }

        .login-input-icon svg {
            width: 18px;
            height: 18px;
        }

        .login-meta-row {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 20px;
            font-size: 0.8125rem;
        }

        .login-check {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--text-muted);
            cursor: pointer;
        }

        .login-check input {
            width: 16px;
            height: 16px;
            accent-color: #2563eb;
            cursor: pointer;
        }

        .login-link {
            color: var(--brand-text);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .login-link:hover {
            color: #2563eb;
        }

        .login-submit {
            width: 100%;
            padding: 12px;
            border: 0;
            border-radius: 10px;
            background: #1e4b7a;
            color: #fff;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .login-submit:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 24px rgba(30, 75, 122, 0.3);
        }

        .login-submit:active {
            transform: translateY(0);
        }

        .login-submit svg {
            width: 16px;
            height: 16px;
        }

    .login-alert {
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 0.8125rem;
        margin-bottom: 18px;
        border: 0;
    }
    .login-alert.alert-danger {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca;
    }
    .login-alert.alert-warning {
        background: #fffbeb;
        color: #92400e;
        border: 1px solid #fde68a;
    }
    .login-alert.alert-success {
        background: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
    }
    .login-alert.alert-info {
        background: #eff6ff;
        color: #1e4b7a;
        border: 1px solid #bfdbfe;
        font-weight: 700;
    }

        .login-card-footer {
            text-align: center;
            margin-top: 20px;
            padding-top: 16px;
            border-top: 1px solid var(--border-base);
            font-size: 0.8125rem;
            color: var(--text-muted);
        }

        .login-card-footer a {
            color: var(--brand-text);
            text-decoration: none;
            font-weight: 600;
        }

        .login-card-footer a:hover {
            color: #2563eb;
        }

        .login-session-note {
            margin-top: 8px;
            font-size: 0.75rem;
            line-height: 1.4;
            color: var(--text-subtle);
        }

        .theme-toggle {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            border: 1px solid var(--border-base);
            color: var(--text-muted);
            background: transparent;
            cursor: pointer;
            transition: all 0.3s;
        }
        .theme-toggle:hover { color: var(--text-strong); border-color: var(--border-hover); transform: rotate(180deg); }
        [data-theme="light"] .sun-icon { display: none; }
        [data-theme="dark"] .moon-icon { display: none; }

        @media (max-width: 900px) {
            html,
            body {
                overflow-x: hidden;
            }
            .login-nav { padding: 12px 20px; }
            .login-hero { padding: 80px 16px 40px; }
            .login-hero-content { grid-template-columns: 1fr; gap: 40px; justify-items: center; padding: 0 16px; }
            .login-hero-svg-wrap { max-width: 320px; margin-left: 0; }
            .login-card { max-width: 100%; margin-left: 0; }
        }

        /* Phones: sign-in form only — the blueprint illustration and
           decorative gears are dropped so the form is the whole page */
        @media (max-width: 767.98px) {
            .login-hero-svg-wrap,
            .left-gear-stack {
                display: none;
            }
            .login-hero {
                align-items: center;
                padding: 88px 16px 32px;
            }
            .login-hero-content {
                padding: 0 4px;
            }
        }

        @media (max-width: 576px) {
            .login-nav { padding: 10px 14px; gap: 10px; }
            .login-nav-brand span { font-size: 0.95rem; }
            .login-hero { padding: 72px 12px 32px; }
            .login-hero-content { padding: 0 4px; gap: 28px; }
            .login-hero-svg-wrap { max-width: 250px; }
            .login-card { padding: 26px 20px; border-radius: 12px; }
            .login-card h3 { font-size: 1.2rem; }
            .login-card-sub { font-size: 0.9rem; }
            .login-alert { font-size: 0.85rem; }
        }
