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

        html,
        body {
            width: 100%;
            max-width: 100%;
            min-height: 100%;
            overflow-x: hidden;
        }

        body {
            min-height: 100vh;
            font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            color: #0f172a;
            background:
                radial-gradient(circle at 10% 10%, rgba(139, 92, 246, .16), transparent 30%),
                radial-gradient(circle at 90% 10%, rgba(249, 115, 22, .14), transparent 28%),
                linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #fff7ed 100%);
        }

        .auth-shell {
            display: grid;
            grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
            min-height: 100vh;
            width: 100%;
        }

        .auth-story {
            position: relative;
            display: flex;
            align-items: center;
            min-width: 0;
            padding: 56px;
            color: #fff;
            background:
                linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(88, 28, 135, .86)),
                linear-gradient(135deg, #111827, #7c3aed);
            overflow: hidden;
        }

        .auth-story::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: linear-gradient(135deg, #000 0%, transparent 76%);
        }

        .auth-story::after {
            content: '';
            position: absolute;
            right: -120px;
            bottom: -120px;
            width: 360px;
            height: 360px;
            border-radius: 50%;
            background: rgba(249, 115, 22, .28);
            filter: blur(8px);
        }

        .story-content {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 640px;
        }

        .brand-mark {
            display: inline-flex;
            align-items: center;
            gap: 13px;
            margin-bottom: 42px;
        }

        .brand-icon {
            width: 58px;
            height: 58px;
            display: grid;
            place-items: center;
            border-radius: 20px;
            background:
                radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .48), transparent 30%),
                linear-gradient(135deg, #f97316, #7c3aed);
            box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
            overflow: hidden;
        }

        .brand-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 8px;
        }

        .brand-name {
            font-size: 26px;
            font-weight: 950;
            line-height: 1;
            letter-spacing: 0;
        }

        .brand-name span {
            color: #fdba74;
        }

        .story-kicker {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            padding: 8px 12px;
            margin-bottom: 18px;
            border: 1px solid rgba(255, 255, 255, .18);
            border-radius: 999px;
            background: rgba(255, 255, 255, .1);
            color: #fde68a;
            font-size: 12px;
            font-weight: 900;
        }

        .story-title {
            max-width: 620px;
            margin: 0;
            font-size: clamp(36px, 4.2vw, 58px);
            line-height: 1.02;
            font-weight: 950;
            letter-spacing: 0;
        }

        .story-copy {
            max-width: 560px;
            margin-top: 18px;
            color: rgba(255, 255, 255, .78);
            font-size: 16px;
            font-weight: 600;
            line-height: 1.7;
        }

        .story-metrics {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            margin-top: 34px;
        }

        .story-metric {
            padding: 16px;
            border: 1px solid rgba(255, 255, 255, .16);
            border-radius: 20px;
            background: rgba(255, 255, 255, .1);
            backdrop-filter: blur(14px);
        }

        .story-metric strong {
            display: block;
            color: #fff;
            font-size: 20px;
            font-weight: 950;
        }

        .story-metric span {
            display: block;
            margin-top: 4px;
            color: rgba(255, 255, 255, .72);
            font-size: 12px;
            font-weight: 800;
        }

        .auth-panel {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
            padding: 36px 28px;
        }

        .auth-card {
            width: min(100%, 480px);
            border: 1px solid rgba(226, 232, 240, .92);
            border-radius: 30px;
            background: rgba(255, 255, 255, .88);
            box-shadow: 0 32px 80px rgba(15, 23, 42, .14);
            backdrop-filter: blur(20px);
            overflow: hidden;
        }

        .auth-card-header {
            padding: 26px 28px 18px;
        }

        .mobile-brand {
            display: none;
            align-items: center;
            gap: 11px;
            margin-bottom: 18px;
        }

        .auth-title {
            margin: 0;
            color: #0f172a;
            font-size: 28px;
            font-weight: 950;
            line-height: 1.1;
            letter-spacing: 0;
        }

        .auth-subtitle {
            margin-top: 8px;
            color: #64748b;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.5;
        }

        .alert {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-top: 16px;
            padding: 12px 13px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 750;
        }

        .alert-danger {
            color: #991b1b;
            border: 1px solid #fecaca;
            background: #fef2f2;
        }

        .alert-success {
            color: #166534;
            border: 1px solid #bbf7d0;
            background: #f0fdf4;
        }

        .auth-toggle {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 5px;
            margin: 0 28px 18px;
            padding: 5px;
            border: 1px solid #e2e8f0;
            border-radius: 18px;
            background: #f8fafc;
        }

        .toggle-btn {
            min-height: 40px;
            border: 0;
            border-radius: 14px;
            background: transparent;
            color: #64748b;
            font: inherit;
            font-size: 13px;
            font-weight: 900;
            cursor: pointer;
            transition: all .18s ease;
        }

        .toggle-btn.active {
            color: #fff;
            background: linear-gradient(135deg, #7c3aed, #f97316);
            box-shadow: 0 12px 24px rgba(124, 58, 237, .2);
        }

        .auth-card-body {
            padding: 0 28px 28px;
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            margin-bottom: 7px;
            color: #334155;
            font-size: 13px;
            font-weight: 900;
        }

        .input-wrap {
            position: relative;
        }

        .input-wrap > i:not(.toggle-password) {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            pointer-events: none;
        }

        .toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #7c3aed;
            cursor: pointer;
        }

        .form-control {
            width: 100%;
            min-height: 48px;
            border: 1.5px solid #dbe4f0;
            border-radius: 16px;
            background: rgba(255, 255, 255, .92);
            color: #0f172a;
            font: inherit;
            font-size: 14px;
            font-weight: 700;
            outline: none;
            padding: 12px 44px 12px 44px;
            transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
        }

        select.form-control {
            appearance: none;
        }

        .form-control:focus {
            border-color: #8b5cf6;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(139, 92, 246, .13);
        }

        .error-text {
            display: block;
            margin-top: 6px;
            color: #dc2626;
            font-size: 12px;
            font-weight: 750;
        }

        .checkbox-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            margin: 4px 0 18px;
        }

        .checkbox-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
        }

        .checkbox-label input {
            accent-color: #7c3aed;
        }

        .link {
            color: #7c3aed;
            text-decoration: none;
            font-size: 13px;
            font-weight: 900;
        }

        .link:hover {
            text-decoration: underline;
        }

        .submit-btn {
            width: 100%;
            min-height: 50px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            border: 0;
            border-radius: 16px;
            color: #fff;
            background: linear-gradient(135deg, #7c3aed, #f97316);
            box-shadow: 0 18px 34px rgba(124, 58, 237, .22);
            font: inherit;
            font-size: 15px;
            font-weight: 950;
            cursor: pointer;
            transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
        }

        .submit-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 22px 40px rgba(124, 58, 237, .28);
        }

        .submit-btn:disabled {
            opacity: .75;
            cursor: not-allowed;
            transform: none;
        }

        .spinner {
            width: 16px;
            height: 16px;
            display: inline-block;
            border: 2px solid rgba(255, 255, 255, .45);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin .75s linear infinite;
        }

        .footer-text {
            margin-top: 18px;
            color: #64748b;
            text-align: center;
            font-size: 13px;
            font-weight: 750;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

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

            .auth-story {
                display: none;
            }

            .auth-panel {
                min-height: 100vh;
                padding: 22px 14px;
            }

            .mobile-brand {
                display: flex;
            }

            .auth-card {
                border-radius: 24px;
            }
        }

        @media (max-width: 520px) {
            body {
                background: #f8fafc;
            }

            .auth-panel {
                align-items: flex-start;
                padding: 14px;
            }

            .auth-card {
                width: 100%;
                border-radius: 22px;
                box-shadow: 0 16px 42px rgba(15, 23, 42, .1);
            }

            .auth-card-header,
            .auth-card-body {
                padding-left: 18px;
                padding-right: 18px;
            }

            .auth-card-header {
                padding-top: 20px;
            }

            .auth-toggle {
                margin-left: 18px;
                margin-right: 18px;
            }

            .auth-title {
                font-size: 24px;
            }

            .form-control {
                min-height: 46px;
            }
        }
    