:root {
            color-scheme: light;
            --ink: #071f1e;
            --lime: #a8f500;
            --lime-dark: #72a900;
            --muted: #667876;
            --line: #dce3da;
            --danger: #bd302e;
        }

        * { box-sizing: border-box; }
        html, body { min-height: 100%; }

        body {
            margin: 0;
            color: var(--ink);
            background:
                radial-gradient(circle at 92% 5%, rgba(168, 245, 0, .14), transparent 28rem),
                linear-gradient(135deg, #f7f8f4 0%, #eef3ea 100%);
            font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            font-size: 15px;
            -webkit-font-smoothing: antialiased;
        }

        button, input { font: inherit; }

        .auth-page {
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 32px;
            position: relative;
            overflow: hidden;
        }

        .auth-page::before,
        .auth-page::after {
            content: "";
            position: fixed;
            border: 1px solid rgba(7, 31, 30, .07);
            border-radius: 50%;
            pointer-events: none;
        }

        .auth-page::before { width: 380px; height: 380px; top: -230px; right: -100px; }
        .auth-page::after { width: 260px; height: 260px; bottom: -170px; left: -90px; }

        .auth-shell {
            width: min(1080px, 100%);
            min-height: 650px;
            display: grid;
            grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
            overflow: hidden;
            border: 1px solid rgba(7, 31, 30, .1);
            border-radius: 32px;
            background: #fff;
            box-shadow: 0 32px 90px rgba(7, 31, 30, .13);
            position: relative;
            z-index: 1;
        }

        .auth-intro {
            padding: 56px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            color: #fff;
            background:
                radial-gradient(circle at 100% 0, rgba(168, 245, 0, .13), transparent 24rem),
                linear-gradient(145deg, #061d1c 0%, #0a2d2b 62%, #123f39 100%);
            position: relative;
            isolation: isolate;
        }

        .auth-intro::before,
        .auth-intro::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            z-index: -1;
        }

        .auth-intro::before {
            width: 360px;
            height: 360px;
            right: -190px;
            top: -180px;
            border: 1px solid rgba(168, 245, 0, .3);
            box-shadow: 0 0 0 46px rgba(168, 245, 0, .025), 0 0 0 92px rgba(168, 245, 0, .018);
        }

        .auth-intro::after {
            width: 190px;
            height: 190px;
            left: -105px;
            bottom: -105px;
            background: rgba(168, 245, 0, .055);
        }

        .brand {
            width: max-content;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            color: #fff;
            text-decoration: none;
            font-size: 24px;
            font-weight: 760;
            letter-spacing: -.04em;
        }

        .brand:hover { color: #fff; }
        .brand em { color: var(--lime); font-style: normal; }

        .brand-logo {
            display: block;
            width: auto;
            height: 74px;
            max-width: 280px;
            object-fit: contain;
        }

        .brand-mark {
            width: 46px;
            height: 46px;
            display: grid;
            place-items: center;
            border-radius: 15px;
            color: var(--ink);
            background: var(--lime);
            box-shadow: 0 14px 30px rgba(168, 245, 0, .18);
            font-size: 23px;
        }

        .intro-content { max-width: 440px; margin: 72px 0 64px; }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--lime);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .13em;
            text-transform: uppercase;
        }

        .eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 99px; background: currentColor; }

        .intro-content h1 {
            margin: 18px 0 18px;
            color: #fff;
            font-size: clamp(40px, 4.2vw, 58px);
            font-weight: 760;
            line-height: .99;
            letter-spacing: -.055em;
        }

        .intro-content p {
            max-width: 410px;
            margin: 0;
            color: rgba(255, 255, 255, .7);
            font-size: 16px;
            line-height: 1.7;
        }

        .security-note {
            display: flex;
            align-items: center;
            gap: 12px;
            color: rgba(255, 255, 255, .7);
            font-size: 13px;
        }

        .security-note i {
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border: 1px solid rgba(168, 245, 0, .22);
            border-radius: 12px;
            color: var(--lime);
            background: rgba(168, 245, 0, .06);
            font-size: 18px;
        }

        .auth-form-panel {
            padding: 56px clamp(38px, 5vw, 68px);
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, .98);
        }

        .auth-form { width: 100%; }
        .mobile-brand { display: none; margin-bottom: 40px; padding: 8px 14px; border-radius: 14px; background: #062827; color: var(--ink); }
        .mobile-brand:hover { color: var(--ink); }

        .secure-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            margin-bottom: 20px;
            padding: 8px 12px;
            border: 1px solid #dbedb4;
            border-radius: 999px;
            color: #4e7200;
            background: #f2fbdc;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .auth-form h2 {
            margin: 0 0 10px;
            color: var(--ink);
            font-size: clamp(31px, 3vw, 40px);
            font-weight: 760;
            line-height: 1.08;
            letter-spacing: -.045em;
        }

        .form-description { margin: 0 0 34px; color: var(--muted); line-height: 1.65; }

        .validation-box {
            margin-bottom: 22px;
            padding: 13px 15px;
            border: 1px solid #f2c5c4;
            border-radius: 13px;
            color: var(--danger);
            background: #fff5f4;
            font-size: 13px;
        }

        .validation-box ul { margin: 0; padding-left: 18px; }
        .field { margin-bottom: 20px; }

        .form-label {
            display: block;
            margin: 0 0 9px;
            color: #213b39;
            font-size: 13px;
            font-weight: 720;
        }

        .input-shell {
            min-height: 56px;
            display: flex;
            align-items: stretch;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 15px;
            background: #f8faf7;
            transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
        }

        .input-shell:focus-within {
            border-color: #83ba0b;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(168, 245, 0, .14);
        }

        .field-icon {
            width: 52px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            color: #6d807d;
            font-size: 18px;
        }

        .form-control {
            min-width: 0;
            min-height: 54px;
            padding: 0 16px 0 0;
            border: 0;
            border-radius: 0;
            color: var(--ink);
            background: transparent;
            font-size: 15px;
            font-weight: 520;
            box-shadow: none !important;
        }

        .form-control::placeholder { color: #98a5a3; font-weight: 400; }

        .password-toggle {
            width: 50px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border: 0;
            color: #667876;
            background: transparent;
            font-size: 18px;
            transition: color .2s ease, background .2s ease;
        }

        .password-toggle:hover { color: var(--ink); background: #edf3e9; }
        .password-toggle:focus-visible { outline: 2px solid var(--lime-dark); outline-offset: -4px; }

        .field-validation-error {
            display: block;
            margin-top: 7px;
            color: var(--danger) !important;
            font-size: 12px;
        }

        .form-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            margin: 4px 0 28px;
        }

        .remember-me {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin: 0;
            color: #526562;
            cursor: pointer;
            font-size: 13px;
        }

        .remember-me .form-check-input {
            width: 18px;
            height: 18px;
            margin: 0;
            border-color: #becac0;
            border-radius: 5px;
            cursor: pointer;
            box-shadow: none;
        }

        .remember-me .form-check-input:checked { border-color: var(--lime-dark); background-color: var(--lime-dark); }

        .private-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #82908e;
            font-size: 12px;
        }

        .forgot-link { color:#426600; font-size:13px; font-weight:750; text-decoration:none; }
        .forgot-link:hover { color:var(--ink); }
        .success-box { margin-bottom:22px; padding:13px 15px; border:1px solid #cfe5b1; border-radius:13px; color:#315207; background:#f1fadf; font-size:13px; line-height:1.55; }

        .login-button {
            width: 100%;
            min-height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            border: 0;
            border-radius: 15px;
            color: #061c1a;
            background: var(--lime);
            box-shadow: 0 15px 30px rgba(124, 181, 0, .2);
            font-size: 14px;
            font-weight: 800;
            transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
        }

        .login-button:hover {
            color: #061c1a;
            background: #b5ff18;
            box-shadow: 0 18px 34px rgba(124, 181, 0, .25);
            transform: translateY(-1px);
        }

        .login-button:active { transform: translateY(0); }
        .login-button i { font-size: 18px; transition: transform .2s ease; }
        .login-button:hover i { transform: translateX(3px); }

        .signup-row {
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:16px;
            margin:22px 0 0;
            padding:17px 18px;
            border:1px solid #dce6d6;
            border-radius:16px;
            background:linear-gradient(135deg,#f7faef,#eef8dc);
            color:#526460;
            font-size:13px;
        }

        .signup-row a {
            display:inline-flex;
            align-items:center;
            gap:7px;
            flex:0 0 auto;
            padding:9px 13px;
            border-radius:11px;
            background:#071f1e;
            color:#fff;
            font-weight: 800;
            text-decoration: none;
        }

        .signup-row a:hover { color:#a8f500; }

        @media (max-width: 880px) {
            .auth-page { padding: 20px; }
            .auth-shell { width: min(520px, 100%); min-height: 0; display: block; border-radius: 26px; }
            .auth-intro { display: none; }
            .auth-form-panel { padding: 42px 38px; }
            .mobile-brand { display: inline-flex; }
        }

        .login-mobile-nav { display: none; }

        @media (max-width: 480px) {
            body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
            .auth-page { align-items: start; min-height: calc(100vh - 76px); padding: 14px; }
            .auth-shell { margin: 10px 0; border-radius: 22px; }
            .auth-form-panel { padding: 32px 24px; }
            .form-control { font-size: 16px; }
            .mobile-brand { margin-bottom: 34px; font-size: 21px; }
            .mobile-brand .brand-mark { width: 42px; height: 42px; }
            .mobile-brand .brand-logo { height: 58px; max-width: 210px; }
            .auth-form h2 { font-size: 30px; }
            .form-description { margin-bottom: 28px; }
            .form-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
            .signup-row { align-items:stretch; flex-direction:column; text-align:center; }
            .signup-row a { justify-content:center; }
            .login-mobile-nav {
                position: fixed;
                z-index: 20;
                right: 10px;
                bottom: 10px;
                left: 10px;
                display: grid;
                grid-template-columns: repeat(4, minmax(0, 1fr));
                min-height: 64px;
                padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
                border: 1px solid rgba(168, 245, 0, .18);
                border-radius: 21px;
                background: rgba(6, 23, 25, .97);
                box-shadow: 0 18px 44px rgba(6, 23, 25, .28);
                backdrop-filter: blur(18px);
            }
            .login-mobile-nav a {
                display: flex;
                min-width: 0;
                min-height: 52px;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                gap: 3px;
                border-radius: 15px;
                color: #a9bcba;
                font-size: 10px;
                font-weight: 750;
                line-height: 1.15;
                text-decoration: none;
            }
            .login-mobile-nav a i { font-size: 20px; line-height: 1; }
            .login-mobile-nav a.active { color: var(--ink); background: var(--lime); }
        }

        @media print { .login-mobile-nav { display: none !important; } }
