:root {
            --ink: #17201b;
            --muted: #667469;
            --line: #dbe3dc;
            --panel: #ffffff;
            --field: #f7faf8;
            --brand: #1f7a4d;
            --brand-dark: #155b39;
            --warm: #c89b3c;
            --danger: #b42318;
            --danger-bg: #fff1f0;
            --success: #166534;
            --success-bg: #edf7ef;
            --shadow: 0 24px 70px rgba(26, 39, 31, 0.14);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: var(--ink);
            background:
                linear-gradient(135deg, rgba(31, 122, 77, 0.10), transparent 44%),
                linear-gradient(245deg, rgba(200, 155, 60, 0.16), transparent 42%),
                #f4f7f2;
        }

        .shell {
            min-height: 100vh;
            display: grid;
            grid-template-columns: minmax(0, 0.9fr) minmax(360px, 500px);
        }

        .welcome {
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: clamp(30px, 5vw, 72px);
            color: #fff;
            background:
                linear-gradient(140deg, rgba(23, 32, 27, 0.82), rgba(25, 55, 39, 0.74)),
                url('/static/login-bg-staff.jpg');
            background-size: cover;
            background-position: center;
        }

        .welcome::after {
            content: "";
            position: absolute;
            inset: auto -10% -20% 30%;
            height: 44%;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 8px;
            transform: rotate(-7deg);
            background:
                linear-gradient(90deg, rgba(200, 155, 60, 0.22), rgba(255, 255, 255, 0.06)),
                repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 255, 255, 0.10) 54px 55px);
            pointer-events: none;
        }

        .brand,
        .welcome-copy,
        .status-strip {
            position: relative;
            z-index: 1;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            font-weight: 900;
            font-size: 18px;
        }

        .mark {
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.14);
            font-size: 15px;
            font-weight: 950;
        }

        .eyebrow {
            margin: 0 0 14px;
            color: rgba(255, 255, 255, 0.74);
            font-size: 13px;
            font-weight: 850;
            text-transform: uppercase;
        }

        h1 {
            margin: 0;
            max-width: 620px;
            font-size: clamp(36px, 5vw, 66px);
            line-height: 0.98;
            letter-spacing: 0;
        }

        .welcome-copy p {
            max-width: 520px;
            margin: 20px 0 0;
            color: rgba(255, 255, 255, 0.78);
            font-size: 17px;
            line-height: 1.65;
        }

        .status-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            color: rgba(255, 255, 255, 0.78);
            font-size: 13px;
            font-weight: 750;
        }

        .status-strip span {
            padding: 8px 10px;
            border: 1px solid rgba(255, 255, 255, 0.20);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.10);
        }

        .login-panel {
            display: grid;
            place-items: center;
            padding: 32px;
        }

        .login-card {
            width: min(100%, 390px);
            padding: 32px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: var(--shadow);
        }

        .login-card h2 {
            margin: 0 0 8px;
            font-size: 26px;
            letter-spacing: 0;
        }

        .subtitle {
            margin: 0 0 24px;
            color: var(--muted);
            line-height: 1.5;
            font-size: 14px;
        }

        .alert {
            margin-bottom: 18px;
            padding: 12px 14px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 750;
            line-height: 1.4;
        }

        .alert-error {
            color: var(--danger);
            background: var(--danger-bg);
            border: 1px solid rgba(180, 35, 24, 0.20);
        }

        .alert-success {
            color: var(--success);
            background: var(--success-bg);
            border: 1px solid rgba(22, 101, 52, 0.18);
        }

        label {
            display: block;
            margin: 0 0 8px;
            color: #314139;
            font-size: 13px;
            font-weight: 850;
        }

        .field {
            margin-bottom: 16px;
        }

        input {
            width: 100%;
            height: 48px;
            padding: 0 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--field);
            color: var(--ink);
            font: inherit;
            font-size: 15px;
            outline: none;
            transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
        }

        input:focus {
            border-color: var(--brand);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.13);
        }

        input::placeholder {
            color: #9aa69e;
        }

        button {
            width: 100%;
            height: 48px;
            border: 0;
            border-radius: 8px;
            background: var(--brand);
            color: #fff;
            font: inherit;
            font-size: 15px;
            font-weight: 900;
            cursor: pointer;
            transition: background 0.16s ease, transform 0.16s ease;
        }

        button:hover {
            background: var(--brand-dark);
        }

        button:active {
            transform: translateY(1px);
        }

        .footnote {
            margin: 18px 0 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.45;
        }

        @media (max-width: 860px) {
            .shell {
                grid-template-columns: 1fr;
            }

            .welcome {
                min-height: 286px;
                padding: 28px;
            }

            .welcome-copy {
                margin-top: 46px;
            }

            h1 {
                font-size: 38px;
            }

            .login-panel {
                padding: 22px;
            }

            .login-card {
                padding: 24px;
            }
        }
