* {
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --g1: #059669;
            --g2: #10b981;
            --g3: #34d399;
            --g4: #6ee7b7;
            --dark: #030a06;
            --surface: #0d1a12;
            --border: rgba(52, 211, 153, 0.12);
            --border-hover: rgba(52, 211, 153, 0.35);
            --text: #f0fdf4;
            --text-muted: #86efac;
            --text-dim: #4b7a5e;
            --glow: rgba(16, 185, 129, 0.2);
            --card-bg: rgba(13, 26, 18, 0.9);
            --input-bg: rgba(5, 20, 10, 0.7);
            --error: #f87171;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--dark);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            overflow-x: hidden;
        }

        /* ── LEFT PANEL ── */
        .left-panel {
            flex: 1;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            padding: 80px 64px;
            /* Sufficient padding for top and bottom */
            overflow-y: auto;
            /* Allows scrolling if content is long */
        }

        .left-panel::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background:
                radial-gradient(ellipse 90% 70% at 20% 30%, rgba(5, 150, 105, 0.2) 0%, transparent 65%),
                radial-gradient(ellipse 60% 60% at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 55%);
            pointer-events: none;
        }

        .left-panel::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background-image:
                linear-gradient(rgba(52, 211, 153, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(52, 211, 153, 0.03) 1px, transparent 1px);
            background-size: 48px 48px;
            pointer-events: none;
        }

        .left-content {
            position: relative;
            z-index: 1;
            max-width: 440px;
        }

        .electric-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(52, 211, 153, 0.08);
            border: 1px solid var(--border-hover);
            padding: 7px 16px;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--g3);
            margin-bottom: 28px;
            animation: fadeUp 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .electric-badge i {
            font-size: 0.8rem;
            color: var(--g2);
        }

        .left-content h1 {
            font-family: 'Syne', sans-serif;
            font-size: clamp(2.2rem, 3.2vw, 3rem);
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.03em;
            margin-bottom: 18px;
            animation: fadeUp 0.7s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .left-content h1 .highlight {
            background: linear-gradient(120deg, var(--g3), var(--g2));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .left-content p {
            color: var(--text-dim);
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 32px;
            animation: fadeUp 0.7s 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        /* Step indicators */
        .steps {
            display: flex;
            flex-direction: column;
            gap: 16px;
            animation: fadeUp 0.7s 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .step {
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .step-num {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
            border-radius: 50%;
            background: rgba(52, 211, 153, 0.1);
            border: 1px solid rgba(52, 211, 153, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Syne', sans-serif;
            font-size: 0.72rem;
            font-weight: 800;
            color: var(--g3);
            margin-top: 1px;
        }

        .step-text strong {
            display: block;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 2px;
        }

        .step-text span {
            font-size: 0.8rem;
            color: var(--text-dim);
        }

        /* Meter animation on left bottom */
        .meter-deco {
            position: relative;
            margin-top: 48px;
            left: 0;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: fadeUp 0.7s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .meter-bar {
            width: 120px;
            height: 5px;
            background: var(--border);
            border-radius: 10px;
            overflow: hidden;
        }

        .meter-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--g1), var(--g3));
            border-radius: 10px;
            animation: meter-grow 2.5s 1s ease-out forwards;
        }

        @keyframes meter-grow {
            to {
                width: 72%;
            }
        }

        .meter-label {
            font-size: 0.72rem;
            color: var(--text-dim);
        }

        .bolt-deco {
            position: absolute;
            z-index: 0;
            opacity: 0.03;
            color: var(--g3);
            pointer-events: none;
        }

        .bolt-1 {
            bottom: 12%;
            right: 6%;
            font-size: 9rem;
            transform: rotate(10deg);
        }

        .bolt-2 {
            top: 8%;
            right: 20%;
            font-size: 4.5rem;
            transform: rotate(-15deg);
        }

        /* ── RIGHT FORM PANEL ── */
        .right-panel {
            width: 500px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 44px;
            background: var(--card-bg);
            border-left: 1px solid var(--border);
            backdrop-filter: blur(20px);
            overflow-y: auto;
        }

        .form-wrap {
            width: 100%;
            max-width: 380px;
            animation: fadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .form-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: 'Syne', sans-serif;
            font-size: 1.25rem;
            font-weight: 800;
            margin-bottom: 4px;
        }

        .form-logo i {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, var(--g1), var(--g3));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            color: #fff;
            box-shadow: 0 0 14px var(--glow);
        }

        .form-logo .ai-tag {
            font-size: 0.58rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            background: linear-gradient(90deg, var(--g1), var(--g3));
            padding: 2px 7px;
            border-radius: 20px;
            color: #fff;
        }

        .form-subtitle {
            color: var(--text-dim);
            font-size: 0.875rem;
            margin-bottom: 26px;
            margin-top: 4px;
        }

        /* ─── PASSWORD RULES HINT ─── */
        .password-rules {
            display: none;
            /* Shown via JS onFocus */
            font-size: 0.68rem;
            color: var(--g4);
            margin-top: 8px;
            line-height: 1.4;
            padding: 8px 12px;
            background: rgba(52, 211, 153, 0.05);
            border-radius: 8px;
            border-left: 2px solid var(--g2);
            animation: fadeInRules 0.3s ease;
        }

        @keyframes fadeInRules {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Two-col row */
        .input-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .error-box {
            display: none;
            align-items: center;
            gap: 10px;
            background: rgba(248, 113, 113, 0.08);
            border: 1px solid rgba(248, 113, 113, 0.25);
            border-radius: 10px;
            padding: 11px 14px;
            margin-bottom: 16px;
            font-size: 0.85rem;
            color: var(--error);
        }

        .error-box i {
            flex-shrink: 0;
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20%,
            60% {
                transform: translateX(-5px);
            }

            40%,
            80% {
                transform: translateX(5px);
            }
        }

        .input-group {
            margin-bottom: 14px;
        }

        .input-group label {
            display: block;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-dim);
            margin-bottom: 6px;
        }

        .field-wrapper {
            position: relative;
        }

        input[type="email"],
        input[type="password"],
        input[type="text"] {
            width: 100%;
            padding: 11px 14px;
            background: var(--input-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text);
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9rem;
            outline: none;
            transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
        }

        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 20px 0;
            font-size: 0.75rem;
            color: var(--text-dim);
            letter-spacing: 0.05em;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            border-top: 1px solid var(--border);
        }

        .btn-google {
            width: 100%;
            padding: 12px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            border-radius: 11px;
            color: var(--text-muted);
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
        }

        .btn-google:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--border-hover);
            box-shadow: 0 0 18px var(--glow);
            transform: translateY(-1px);
            color: var(--text);
        }

        /* ── FIX: Hides the native Edge/IE password reveal eye icon ── */
        input[type="password"]::-ms-reveal,
        input[type="password"]::-ms-clear {
            display: none;
        }

        input::placeholder {
            color: var(--text-dim);
        }

        input:focus {
            border-color: var(--g2);
            background: rgba(5, 20, 10, 0.9);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
        }

        .field-wrapper input {
            padding-right: 42px;
        }

        .toggle-password {
            position: absolute;
            right: 13px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-dim);
            cursor: pointer;
            font-size: 0.82rem;
            transition: color 0.2s;
        }

        .toggle-password:hover {
            color: var(--g3);
        }

        /* Password strength */
        .strength-bar {
            display: flex;
            gap: 4px;
            margin-top: 7px;
        }

        .strength-seg {
            flex: 1;
            height: 3px;
            border-radius: 4px;
            background: var(--border);
            transition: background 0.3s;
        }

        .strength-seg.weak {
            background: #f87171;
        }

        .strength-seg.medium {
            background: var(--warn, #fbbf24);
        }

        .strength-seg.strong {
            background: var(--g2);
        }

        .btn-primary {
            width: 100%;
            padding: 13px;
            background: linear-gradient(135deg, var(--g1), var(--g2));
            border: none;
            border-radius: 11px;
            color: #fff;
            font-family: 'Syne', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            cursor: pointer;
            margin-top: 6px;
            transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 20px rgba(5, 150, 105, 0.35);
        }

        .btn-primary:hover {
            opacity: 0.9;
            transform: translateY(-1px);
            box-shadow: 0 8px 28px rgba(5, 150, 105, 0.5);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .footer-link {
            text-align: center;
            margin-top: 20px;
            font-size: 0.85rem;
            color: var(--text-dim);
        }

        .footer-link a {
            color: var(--g3);
            font-weight: 600;
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .footer-link a:hover {
            opacity: 0.75;
        }

        .terms-note {
            text-align: center;
            margin-top: 12px;
            font-size: 0.75rem;
            color: var(--text-dim);
            line-height: 1.5;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes dotPulse {

            0%,
            100% {
                opacity: 0.25;
                transform: scale(0.85);
            }

            50% {
                opacity: 1;
                transform: scale(1.15);
            }
        }

        @media (max-width: 860px) {
            .left-panel {
                display: none;
            }

            .right-panel {
                width: 100%;
                border-left: none;
                background: radial-gradient(circle at 50% 25%, rgba(5, 150, 105, 0.12) 0%, var(--dark) 80%);
            }

            .mobile-branding-footer {
                display: block !important;
            }
        }

        /* Terms & Policy Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.65);
            backdrop-filter: blur(8px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-content {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            width: 100%;
            max-width: 500px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
            animation: modalFadeIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(10px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px;
            border-bottom: 1px solid #e2e8f0;
        }

        .modal-header h2 {
            font-family: 'Syne', sans-serif;
            font-size: 1.25rem;
            font-weight: 800;
            color: #0f172a;
            margin: 0;
        }

        .modal-close-btn {
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.2s;
            padding: 0;
            line-height: 1;
        }

        .modal-close-btn:hover {
            color: #0f172a;
        }

        .modal-body {
            padding: 24px;
            overflow-y: auto;
            color: #334155;
            font-size: 0.88rem;
            line-height: 1.6;
            text-align: left;
        }

        .modal-body h3 {
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f172a;
            margin: 16px 0 8px;
        }

        .modal-body h3:first-child {
            margin-top: 0;
        }

        .modal-body p {
            margin: 0 0 16px;
        }

        .modal-body p:last-child {
            margin-bottom: 0;
        }

        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            justify-content: flex-end;
        }

        .modal-ok-btn {
            background: #0f172a;
            color: #ffffff;
            border: none;
            border-radius: 10px;
            padding: 10px 24px;
            font-weight: 700;
            font-size: 0.88rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .modal-ok-btn:hover {
            background: #1e293b;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
        }
        
        .modal-body::-webkit-scrollbar {
            width: 6px;
        }
        .modal-body::-webkit-scrollbar-track {
            background: transparent;
        }
        .modal-body::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.3);
            border-radius: 3px;
        }
        .modal-body:hover::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.5);
        }
