*, *::before, *::after { box-sizing: border-box; }

        :root {
            --navy: #121A2C;
            --navy-mid: #1B2A44;
            --lime: #C5D32C;
            --lime-dark: #8BA61F;
            --page: #F4F6F0;
            --paper: #ffffff;
            --ink: #121A2C;
            --muted: #5C6B7A;
            --line: #DFE8E3;
            --danger: #C83232;
        }

        html, body {
            margin: 0;
            min-height: 100%;
        }

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            color: var(--ink);
            background: var(--page);
            font-family: Ubuntu, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        .appbar {
            display: flex;
            align-items: center;
            gap: 12px;
            min-height: 56px;
            padding: 0 clamp(16px, 4vw, 32px);
            background: var(--navy);
            border-bottom: 1px solid rgba(197, 211, 44, .22);
        }

        .appbar img {
            width: 42px;
            height: 42px;
            object-fit: contain;
            border-radius: 6px;
            background: var(--navy);
        }

        .appbar strong {
            display: block;
            color: #fff;
            font-size: 1.05rem;
            font-weight: 900;
            line-height: 1.05;
        }

        .appbar span {
            display: block;
            margin-top: 2px;
            color: rgba(255, 255, 255, .72);
            font-size: .68rem;
            font-weight: 800;
            letter-spacing: .09em;
            text-transform: uppercase;
        }

        main {
            flex: 1;
            display: grid;
            place-items: center;
            padding: 32px 20px 40px;
        }

        .card {
            width: min(420px, 100%);
            background: var(--paper);
            border: 1px solid rgba(223, 232, 227, .98);
            border-radius: 8px;
            box-shadow: 0 18px 46px rgba(16, 32, 51, .08);
            overflow: hidden;
        }

        .card::before {
            content: "";
            display: block;
            height: 5px;
            background: linear-gradient(90deg, var(--lime-dark), var(--lime));
        }

        .card-body {
            padding: 36px 32px 28px;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            color: var(--lime-dark);
            font-size: .74rem;
            font-weight: 900;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .eyebrow::before {
            content: "";
            width: 28px;
            height: 2px;
            background: var(--lime);
        }

        h1 {
            margin: 0;
            color: var(--navy);
            font-size: 1.55rem;
            font-weight: 900;
            line-height: 1.15;
        }

        .sub {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: .92rem;
            line-height: 1.5;
        }

        form { margin-top: 22px; }

        label {
            display: block;
            margin: 16px 0 6px;
            color: var(--navy);
            font-size: .82rem;
            font-weight: 800;
        }

        input {
            width: 100%;
            min-height: 44px;
            padding: 0 12px;
            border: 1.5px solid var(--line);
            border-radius: 8px;
            color: var(--ink);
            background: #fbfdfb;
            font: inherit;
            outline: none;
            transition: border .18s ease, box-shadow .18s ease, background .18s ease;
        }

        input:focus {
            border-color: var(--lime-dark);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(139, 166, 31, .16);
        }

        .submit-button {
            width: 100%;
            min-height: 46px;
            margin-top: 22px;
            border: 0;
            border-radius: 8px;
            background: var(--lime-dark);
            color: #fff;
            font: inherit;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 12px 28px rgba(40, 122, 72, .18);
        }

        .submit-button:hover {
            background: #6E8516;
        }

        .error,
        .success {
            margin-bottom: 4px;
            padding: 11px 12px;
            border-radius: 8px;
            font-size: .88rem;
            font-weight: 700;
        }

        .error {
            background: #fff1f1;
            border: 1px solid #f3bbbb;
            color: var(--danger);
        }

        .success {
            background: #eef6c8;
            border: 1px solid rgba(139, 166, 31, .28);
            color: var(--navy);
        }

        .password-field { position: relative; }

        .password-field input { padding-right: 48px; }

        .password-toggle {
            position: absolute;
            top: 50%;
            right: 6px;
            width: 34px;
            height: 34px;
            padding: 0;
            border: 0;
            border-radius: 8px;
            color: var(--muted);
            background: transparent;
            cursor: pointer;
            transform: translateY(-50%);
        }

        .password-toggle:hover,
        .password-toggle:focus-visible {
            color: var(--lime-dark);
            background: #eef6c8;
            outline: none;
        }

        .password-toggle svg {
            display: block;
            width: 20px;
            height: 20px;
            margin: auto;
            fill: currentColor;
        }

        .links {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            margin-top: 20px;
            font-size: .8rem;
        }

        .links a {
            color: var(--lime-dark);
            text-decoration: none;
            font-weight: 800;
        }

        .links a:hover { color: var(--navy); }

        .brandline {
            margin: 24px 0 0;
            padding-top: 16px;
            border-top: 1px solid var(--line);
            color: var(--muted);
            font-size: .75rem;
            line-height: 1.5;
        }

        footer {
            padding: 14px 20px 20px;
            color: var(--muted);
            font-size: .75rem;
            text-align: center;
        }

        @media (max-width: 520px) {
            .card-body { padding: 28px 20px 22px; }
            .links { flex-direction: column; }
        }
