

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            margin: 0;
            font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: var(--slate-900);
            background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
            line-height: 1.6;
            min-height: 100vh;
            font-size: 14px;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(24px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .page {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* HEADER */
        .header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(18px);
            border-bottom: 1px solid rgba(0,190,110,0.15);
            box-shadow: 0 4px 24px rgba(0,0,0,0.05);
            padding: 12px 20px;
        }

        .header-inner {
            margin: 0;
            padding: 10px 0;
            display: flex;
            align-items: center;
            justify-content: flex-start; /* right pill removed */
            gap: 20px;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .header-logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-box {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--green), rgb(0,230,130));
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 900;
            font-size: 24px;
            box-shadow: 0 8px 24px rgba(0,190,110,0.4);
            position: relative;
            overflow: hidden;
        }

        .logo-text-block {
            display: flex;
            flex-direction: column;
        }

        .logo-title {
            font-size: 24px;
            font-weight: 900;
            letter-spacing: -0.03em;
            background: linear-gradient(135deg, var(--green-dark), var(--green), rgb(0,230,130));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .logo-subtitle {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--slate-500);
            font-weight: 600;
        }

        /* MAIN LAYOUT */
        .auth-main {
            flex: 1;
            padding: 24px 20px 28px;
        }

        .auth-shell {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.15fr 0.95fr;
            gap: 20px;
            align-items: stretch;
        }

        .page .footer {
            margin-top: auto;
        }

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

        /* BRAND PANEL */
        .auth-brand-panel {
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-soft);
            padding: 24px;
            animation: fadeInUp 0.6s ease-out forwards;
        }

        .auth-brand-panel::before {
            content: "";
            position: absolute;
            inset: -40%;
            background:
                radial-gradient(closest-side, rgba(0,190,110,.18), transparent 62%),
                radial-gradient(closest-side, rgba(99,102,241,.12), transparent 62%);
            filter: blur(18px);
            transform: rotate(8deg);
            pointer-events: none;
        }

        .auth-brand-panel > * {
            position: relative;
            z-index: 1;
        }

        .auth-kicker {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(0,190,110,0.06);
            border: 1px solid rgba(0,190,110,0.24);
            font-size: 11px;
            font-weight: 700;
            color: var(--green-dark);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .auth-kicker-dot {
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: var(--green);
        }

        .auth-title {
            margin: 0 0 8px;
            font-size: 32px;
            font-weight: 900;
            letter-spacing: -0.03em;
        }

        .auth-subtitle {
            margin: 0 0 16px;
            color: var(--slate-500);
            line-height: 1.7;
            font-size: 14px;
            max-width: 60ch;
            font-weight: 500;
        }

        .auth-points-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0,1fr));
            gap: 10px;
            margin-top: 6px;
        }

        @media (max-width: 720px) {
            .auth-points-grid {
                grid-template-columns: 1fr;
            }
        }

        .auth-point {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 12px 14px;
            border-radius: 16px;
            background: #fff;
            border: 1px solid rgba(148,163,184,0.26);
        }

        .auth-point .ic {
            width: 34px;
            height: 34px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,190,110,0.08);
            color: var(--green);
            font-weight: 900;
            flex: 0 0 auto;
        }

        .auth-point .tx b {
            display: block;
            font-size: 13px;
            color: var(--slate-900);
        }

        .auth-point .tx span {
            display: block;
            margin-top: 2px;
            font-size: 12px;
            color: var(--slate-500);
        }

        .auth-meta-strip {
            margin-top: 18px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 11px;
            color: var(--slate-500);
        }

        .auth-meta-pill {
            padding: 4px 9px;
            border-radius: 999px;
            background: rgba(148,163,184,0.12);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .auth-meta-pill strong {
            font-size: 11px;
            color: var(--slate-900);
        }

        /* LOGIN CARD */
        .auth-card {
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-lg);
            background: #fff;
            border: 1px solid rgba(0,190,110,0.16);
            box-shadow: var(--shadow-soft);
            padding: 22px 22px 20px;
            animation: fadeInUp 0.6s ease-out forwards;
        }

        .auth-card::before {
            content: "";
            position: absolute;
            inset: -40%;
            background:
                radial-gradient(closest-side, rgba(0,190,110,.14), transparent 62%),
                radial-gradient(closest-side, rgba(99,102,241,.10), transparent 62%);
            filter: blur(16px);
            transform: rotate(8deg);
            pointer-events: none;
        }

        .auth-card > * {
            position: relative;
            z-index: 1;
        }

        .auth-card h2 {
            margin: 0 0 6px;
            font-size: 20px;
            font-weight: 900;
            letter-spacing: -0.02em;
        }

        .auth-card p {
            margin: 0 0 16px;
            color: var(--slate-500);
            font-size: 13px;
        }

        .form-row {
            margin-top: 12px;
        }

        .form-row label {
            display: block;
            font-weight: 700;
            font-size: 13px;
            color: rgba(15,23,42,0.80);
            margin-bottom: 6px;
        }

        .form-row input {
            width: 100%;
            border-radius: 14px;
            border: 1px solid rgba(148,163,184,0.28);
            background: rgba(255,255,255,0.96);
            padding: 12px 12px;
            outline: none;
            color: #0f172a;
            font-size: 13px;
            transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
        }

        .form-row input::placeholder {
            color: rgba(148,163,184,0.85);
        }

        .form-row input:focus {
            border-color: rgba(0,190,110,0.70);
            box-shadow: 0 0 0 4px rgba(0,190,110,0.22);
            background: #ffffff;
        }

        .auth-links {
            margin-top: 10px;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            flex-wrap: wrap;
            font-size: 13px;
        }

        .auth-links a {
            font-weight: 900;
            position: relative;
            padding: 2px 0;
            color: var(--green-dark);
            transition: color .2s ease, transform .2s ease;
        }

        .auth-links a:hover {
            color: var(--green);
            transform: translateY(-1px);
        }

        .auth-actions {
            margin-top: 16px;
        }

        .auth-btn {
            width: 100%;
            border: none;
            border-radius: 12px;
            padding: 12px 18px;
            font-weight: 800;
            font-size: 14px;
            cursor: pointer;
            color: #fff;
            background: linear-gradient(135deg, var(--green), rgb(0,230,130));
            box-shadow: 0 4px 16px rgba(0,190,110,0.3);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .auth-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,190,110,0.4);
        }

        .auth-divider {
            margin: 16px 0;
            height: 1px;
            background: rgba(148,163,184,0.30);
        }

        .auth-bottom-row {
            margin-top: 4px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 12px;
        }

        .auth-bottom-row span {
            color: rgba(15,23,42,0.60);
            font-weight: 700;
        }

        .auth-link-cta {
            font-weight: 900;
            color: var(--green);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            transition: gap .18s ease, filter .18s ease, transform .18s ease;
        }

        .auth-link-cta:hover {
            gap: 10px;
            filter: brightness(1.05);
            transform: translateY(-1px);
        }

        /* FOOTER */

        /* LOGIN ALERT */
        .alert {
            position: fixed;
            top: 40px;
            right: 22px;
            width: min(360px, 92vw);
            display: flex;
            gap: 12px;
            align-items: flex-start;
            padding: 12px 12px 14px 14px;
            border-radius: 14px;
            background: #ffffff;
            border: 1px solid transparent;
            box-shadow:
                0 18px 40px rgba(185, 28, 28, 0.18),
                0 6px 16px rgba(248, 113, 113, 0.16);
            color: #7f1d1d;
            z-index: 2000;
            overflow: hidden;
            animation: alertEnter 0.35s ease-out;
            transition: opacity 0.35s ease, transform 0.35s ease;
        }

        .alert::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(120px 80px at 10% -10%, rgba(239, 68, 68, 0.22), transparent 70%),
                radial-gradient(200px 120px at 100% 0%, rgba(248, 113, 113, 0.18), transparent 70%);
            opacity: 0.6;
            pointer-events: none;
        }

        .alert::after {
            content: "";
            position: absolute;
            left: -28px;
            top: -46px;
            width: 120px;
            height: 120px;
            border-radius: 999px;
            background: radial-gradient(circle, rgba(239, 68, 68, 0.35), transparent 70%);
            filter: blur(2px);
            opacity: 0.9;
        }

        .alert.is-hiding {
            opacity: 0;
            transform: translateY(-6px) scale(0.98);
        }

        .alert__badge,
        .alert__content,
        .alert__meter {
            position: relative;
            z-index: 1;
        }

        .alert__badge {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            display: grid;
            place-items: center;
            font-weight: 900;
            font-size: 16px;
            color: #991b1b;
            background:
                radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(248, 113, 113, 0.35)),
                linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(248, 113, 113, 0.08));
            border: 1px solid rgba(239, 68, 68, 0.5);
            box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
        }

        .alert__badge::after {
            content: "";
            position: absolute;
            inset: -6px;
            border-radius: 16px;
            border: 1px dashed rgba(239, 68, 68, 0.45);
            opacity: 0.7;
        }

        .alert__content {
            flex: 1;
            min-width: 0;
        }

        .alert__eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 8px;
            border-radius: 999px;
            background: rgba(239, 68, 68, 0.12);
            color: #b91c1c;
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 4px;
        }

        .alert__title {
            font-size: 13px;
            font-weight: 900;
            letter-spacing: 0.02em;
            margin-bottom: 2px;
            color: #7f1d1d;
        }

        .alert__message {
            font-size: 12px;
            color: #991b1b;
            margin-bottom: 8px;
            font-weight: 700;
        }

        .alert__timer {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            font-size: 11px;
            color: #c2410c;
            font-weight: 800;
        }

        .alert__timer-label {
            color: #b91c1c;
        }

        .alert__timer-value {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.4);
            padding: 2px 6px;
            border-radius: 999px;
            font-variant-numeric: tabular-nums;
            color: #991b1b;
        }

        .alert__meter {
            position: absolute;
            left: 14px;
            right: 14px;
            bottom: 10px;
            height: 3px;
            border-radius: 999px;
            background: rgba(239, 68, 68, 0.12);
            overflow: hidden;
        }

        .alert__meter-fill {
            display: block;
            height: 100%;
            background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
            transform-origin: left center;
            animation: alertProgress var(--alert-duration, 10s) linear forwards;
        }

        .alert__meter-fill::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
            mix-blend-mode: screen;
            opacity: 0.7;
        }

        @keyframes alertEnter {
            from { opacity: 0; transform: translateY(-8px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        @keyframes alertProgress {
            from { transform: scaleX(1); }
            to { transform: scaleX(0); }
        }

        @media (max-width: 720px) {
            .alert {
                top: 70px;
                left: 16px;
                right: 16px;
                width: auto;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .alert,
            .alert__meter-fill {
                animation: none;
            }
        }
