        :root {
            --navy-dark: #0a0e1a;
            --navy: #1a233a;
            --navy-light: #2d3b5e;
            --gold: #d4af37;
            --gold-light: #f4cf57;
            --gold-dark: #b8941f;
            --white: #ffffff;
            --cream: #f9f8f4;
        }

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

        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
        }

        /* Auth wrapper - contains both panels */
        .auth-wrapper {
            display: flex;
            width: 100%;
            min-height: 100vh;
            position: relative;
            z-index: 1;
        }

        /* Background image - African business/finance themed */
        .bg-image {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1577962917302-cd8b8a8b4d59?w=1920&q=80') center/cover no-repeat;
            opacity: 0.12;
            z-index: 0;
        }

        /* Animated background elements */
        .bg-shape {
            position: fixed;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
            animation: float 20s infinite ease-in-out;
        }

        .bg-shape-1 {
            width: 600px;
            height: 600px;
            top: -200px;
            right: -200px;
            animation-delay: 0s;
        }

        .bg-shape-2 {
            width: 400px;
            height: 400px;
            bottom: -100px;
            left: -100px;
            animation-delay: 5s;
        }

        .bg-shape-3 {
            width: 300px;
            height: 300px;
            top: 50%;
            left: 50%;
            animation-delay: 10s;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(30px, -30px) scale(1.05); }
            50% { transform: translate(-20px, 20px) scale(0.95); }
            75% { transform: translate(20px, 30px) scale(1.02); }
        }

        /* Left panel - Branding */
        .brand-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 3rem;
            position: sticky;
            top: 0;
            height: 100vh;
        }

        .brand-content {
            text-align: center;
            color: var(--white);
            max-width: 500px;
        }

        .brand-logo {
            font-family: 'Playfair Display', serif;
            font-size: 3.5rem;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 1rem;
            letter-spacing: -1px;
        }

        .brand-logo span {
            color: var(--gold);
        }

        .brand-tagline {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 1.5rem;
            line-height: 1.3;
        }

        .brand-tagline span {
            color: var(--gold);
            font-style: italic;
        }

        .brand-description {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .brand-features {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-items: center;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.95rem;
        }

        .feature-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold);
            font-size: 1.2rem;
        }

        /* Right panel - Form */
        .form-panel {
            width: 100%;
            max-width: 520px;
            background: var(--white);
            padding: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            min-height: 100vh;
            box-sizing: border-box;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.875rem;
            color: #64748b;
            text-decoration: none;
            margin-bottom: 2rem;
            transition: color 0.2s;
        }
        .back-link:hover {
            color: var(--navy);
        }

        .form-header {
            margin-bottom: 2.5rem;
        }

        .form-title {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 0.5rem;
        }

        .form-subtitle {
            color: #64748b;
            font-size: 1rem;
        }

        .form-subtitle a {
            color: var(--gold-dark);
            text-decoration: none;
            font-weight: 600;
        }

        .form-subtitle a:hover {
            text-decoration: underline;
        }

        /* Form styles */
        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-label {
            display: block;
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--navy);
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-control {
            width: 100%;
            padding: 1rem 1.25rem;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Roboto', sans-serif;
            background: var(--white);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.1);
            transform: translateY(-1px);
        }

        .form-control::placeholder {
            color: #94a3b8;
        }

        .form-control:focus::placeholder {
            color: #cbd5e1;
        }

        .input-icon {
            position: absolute;
            right: 1rem;
            top: 2.6rem;
            color: #94a3b8;
            font-size: 1.2rem;
            cursor: pointer;
            transition: color 0.3s;
        }

        .input-icon:hover {
            color: var(--gold);
        }

        /* Form options */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 1.25rem 0 1.5rem;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .form-check {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .form-check-input {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--gold);
            border: 2px solid #cbd5e1;
        }

        .form-check-label {
            font-size: 0.9rem;
            color: #64748b;
            cursor: pointer;
        }

        .forgot-password {
            font-size: 0.9rem;
            color: var(--gold-dark);
            text-decoration: none;
            font-weight: 600;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        /* Submit button */
        .btn-submit {
            width: 100%;
            padding: 1.1rem;
            background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
            border: none;
            border-radius: 12px;
            color: var(--white);
            font-weight: 600;
            font-size: 1.05rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Roboto', sans-serif;
            box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .btn-submit::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.7s ease;
        }

        .btn-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
        }

        .btn-submit:hover::before {
            left: 100%;
        }

        .btn-submit:active {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
        }

        /* Alerts */
        .alert {
            padding: 1rem 1.25rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .alert-danger {
            background: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fee2e2;
        }

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

        .errorlist {
            list-style: none;
            padding: 0.5rem 0 0;
            margin: 0;
        }

        .errorlist li {
            color: #b91c1c;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        /* Terms checkbox */
        .terms-check {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin: 1.25rem 0 1.5rem;
        }

        .terms-check .form-check-input {
            margin-top: 0.2rem;
        }

        .terms-check .form-check-label {
            font-size: 0.85rem;
            line-height: 1.5;
        }

        .terms-check a {
            color: var(--gold-dark);
            text-decoration: none;
        }

        .terms-check a:hover {
            text-decoration: underline;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .brand-panel {
                display: none;
            }
            .form-panel {
                max-width: 100%;
                padding: 2rem 1.5rem 3rem;
                min-height: 100vh;
            }
        }

        @media (max-width: 576px) {
            .form-panel {
                padding: 1.5rem;
            }
            .form-title {
                font-size: 2rem;
            }
        }



        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Focus styles for better accessibility */
        .form-control:focus,
        .social-button-card:focus,
        .btn-auth:focus {
            outline: 3px solid var(--gold);
            outline-offset: 2px;
            box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .form-control,
            .social-button-card,
            .btn-auth {
                border: 2px solid currentColor;
            }

            .form-control:focus,
            .social-button-card:focus,
            .btn-auth:focus {
                border-width: 3px;
                outline: none;
            }
        }

        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .bg-shape {
                animation: none;
            }
        }

        /* Google Sign-In Button */
        .google-signin-wrap { margin-top: 1.25rem; }
        .google-divider {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
            color: #94a3b8;
            font-size: 0.8125rem;
        }
        .google-divider::before,
        .google-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e2e8f0;
        }
        .btn-google {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            width: 100%;
            padding: 0.75rem 1.25rem;
            background: #fff;
            border: 1.5px solid #dadce0;
            border-radius: 8px;
            font-size: 0.9375rem;
            font-weight: 500;
            color: #3c4043;
            text-decoration: none;
            transition: background 0.15s ease, box-shadow 0.15s ease;
        }
        .btn-google:hover {
            background: #f8f9fa;
            box-shadow: 0 1px 4px rgba(0,0,0,0.12);
            color: #3c4043;
            text-decoration: none;
        }
        .btn-google svg { flex-shrink: 0; }
        
        /* Google Troubleshooting Help Styles */
        .google-help-section {
            margin-top: 1.5rem;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #4285F4;
            transition: all 0.3s ease;
        }
        
        .google-help-section:hover {
            background: #f1f3f4;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .google-help-section h6 {
            margin: 0 0 0.75rem 0;
            color: #1a233a;
            font-size: 0.9rem;
            font-weight: 600;
            display: flex;
            align-items: center;
        }
        
        .google-help-section h6 i {
            margin-right: 0.5rem;
            color: #4285F4;
        }
        
        .google-help-section p {
            margin: 0 0 0.75rem 0;
            color: #64748b;
            font-size: 0.85rem;
            line-height: 1.4;
        }
        
        .troubleshooting-steps {
            font-size: 0.8rem;
            color: #475569;
        }
        
        .troubleshooting-steps ol {
            margin: 0;
            padding-left: 1.25rem;
        }
        
        .troubleshooting-steps li {
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }
        
        .troubleshooting-steps li strong {
            color: #1a233a;
        }
        
        .quick-fixes {
            margin-top: 0.75rem;
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        
        .btn-clear-cache, .btn-show-details {
            padding: 0.375rem 0.75rem;
            background: #e2e8f0;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 0.75rem;
            color: #475569;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-clear-cache:hover, .btn-show-details:hover {
            background: #d1d9e6;
            border-color: #94a3b8;
            color: #1a233a;
        }
        
        .btn-clear-cache i, .btn-show-details i {
            margin-right: 0.25rem;
        }
        
        #detailedTroubleshooting {
            margin-top: 1rem;
            padding: 0.75rem;
            background: #ffffff;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            animation: fadeIn 0.3s ease;
        }
        
        #detailedTroubleshooting h6 {
            margin: 0 0 0.5rem 0;
            color: #1a233a;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        #detailedTroubleshooting div {
            font-size: 0.75rem;
            color: #475569;
            line-height: 1.5;
        }
        
        #detailedTroubleshooting p {
            margin: 0.5rem 0 0.25rem 0;
            font-weight: 600;
        }
        
        #detailedTroubleshooting ul {
            margin: 0.25rem 0 0.75rem 1.25rem;
        }
        
        #detailedTroubleshooting li {
            margin-bottom: 0.25rem;
        }
        
        #detailedTroubleshooting a {
            color: #4285F4;
            text-decoration: none;
        }
        
        #detailedTroubleshooting a:hover {
            text-decoration: underline;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Responsive adjustments */
        @media (max-width: 576px) {
            .quick-fixes {
                flex-direction: column;
            }
            
            .btn-clear-cache, .btn-show-details {
                width: 100%;
                justify-content: center;
            }
            
            .troubleshooting-steps {
                font-size: 0.75rem;
            }
        }
