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

        body {
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding-top: 100px;
            scroll-behavior: smooth;
        }

        /* =============================================
           FREE SITE HEADER & NAVIGATION
           ============================================= */
        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: white;
            box-shadow: 0 4px 16px rgba(0, 20, 40, 0.08);
            z-index: 1000;
        }

        .logo-row {
            background: white;
            padding: 0.6rem 2rem;
            border-bottom: 1px solid rgba(13, 71, 161, 0.1);
        }

        .company-logo {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.75rem 2rem;
        }

        .logo-group {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .company-logo img {
            height: 56px;
            width: auto;
            display: block;
            border-radius: 12px;
        }

        .slogan-text {
            font-size: 1.25rem;
            font-weight: 600;
            color: #0d47a1;
            letter-spacing: -0.01em;
            background: #e3f2fd;
            padding: 0.4rem 1.4rem;
            border-radius: 40px;
            white-space: nowrap;
            border: 1px solid rgba(13,71,161,0.2);
        }

        .header-cta {
            display: flex;
            gap: 12px;
        }

        .header-cta a {
            background: #0d47a1;
            color: white;
            text-decoration: none;
            padding: 0.4rem 1.4rem;
            border-radius: 30px;
            font-weight: 500;
            font-size: 0.95rem;
            transition: 0.2s;
            white-space: nowrap;
        }

        .header-cta a:hover {
            background: #1565c0;
        }

        .header-cta a.signup {
            background: #4CAF50;
        }

        .header-cta a.signup:hover {
            background: #3d8b40;
        }

        .nav-row {
            background: #0d47a1;
        }

        .main-nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 0.1rem 2rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
            gap: 0.2rem;
        }

        .nav-links li a {
            display: block;
            color: white;
            text-decoration: none;
            padding: 0.4rem 1.2rem;
            font-weight: 500;
            border-radius: 30px;
            transition: background 0.2s;
            font-size: 0.95rem;
        }

        .nav-links li a:hover {
            background: #4CAF50;
        }

        /* =============================================
           LOGIN CONTAINER
           ============================================= */
        .login-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 180px);
            padding: 2rem 1rem;
        }

        .login-container {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
        }

        .login-card {
            background: white;
            border-radius: 32px;
            padding: 2rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            width: 100%;
        }

        .logo {
            text-align: center;
            margin-bottom: 2rem;
        }

        .logo img {
            height: 40px;
            margin-bottom: 1rem;
            max-width: 100%;
        }

        .logo h1 {
            color: #0d47a1;
            font-size: 1.8rem;
            word-break: keep-all;
        }

        .logo p {
            color: #666;
            font-size: 1.0rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
            width: 100%;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #0d47a1;
            font-size: 0.95rem;
        }

        input {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s;
            font-family: inherit;
        }

        input[type="email"],
        input[type="password"],
        input[type="text"] {
            width: 100%;
            min-width: 0;
        }

        input:focus {
            outline: none;
            border-color: #0d47a1;
            box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
        }

        .password-container {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
        }

        .password-container input {
            width: 100%;
            padding: 14px 50px 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .password-container input:focus {
            outline: none;
            border-color: #0d47a1;
        }

        .toggle-password {
            position: absolute;
            right: 12px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.2rem;
            padding: 8px;
            color: #666;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .toggle-password:hover {
            color: #0d47a1;
        }

        .toggle-password:focus {
            outline: none;
        }

        .login-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #0d47a1, #1a237e);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(13, 71, 161, 0.3);
        }

        .login-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .register-link {
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .register-link a {
            color: #0d47a1;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
        }

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

        .error-message {
            background: #ffebee;
            color: #c62828;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: none;
            font-size: 0.9rem;
            word-break: break-word;
        }

        .success-message {
            background: #e8f5e9;
            color: #2e7d32;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: none;
            font-size: 0.9rem;
            word-break: break-word;
        }

        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid white;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            margin-right: 8px;
            vertical-align: middle;
        }

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

        .pro-badge {
            display: inline-block;
            background: linear-gradient(135deg, #ffd700, #ffb347);
            color: #1a237e;
            padding: 0.2rem 0.8rem;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: bold;
            margin-left: 8px;
            vertical-align: middle;
        }

        .password-hint {
            font-size: 0.85rem;
            margin-top: 8px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .password-hint.error-hint {
            color: #e53935;
            font-size: 0.85rem;
        }

        .password-hint.success-hint {
            color: #4caf50;
            font-size: 0.85rem;
        }

        /* Enhanced Modal Styles */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 1rem;
        }

        .modal-container {
            background: white;
            border-radius: 28px;
            padding: 2rem;
            max-width: 450px;
            width: 100%;
            margin: 1rem;
            box-shadow: 0 25px 50px rgba(0,0,0,0.3);
            animation: modalFadeIn 0.3s ease;
            position: relative;
        }

        .reset-state {
            transition: all 0.3s ease;
        }

        .loading-animation {
            text-align: center;
            padding: 1rem;
        }

        .loading-animation i {
            color: #0d47a1;
            margin-bottom: 1rem;
            animation: bounce 1s infinite;
        }

        .loading-animation h3 {
            color: #0d47a1;
            margin-bottom: 0.5rem;
        }

        .loading-animation p {
            color: #666;
            margin-bottom: 1.5rem;
        }

        .spinner-large {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 4px solid #e0e0e0;
            border-top-color: #0d47a1;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 1rem auto;
        }

        .success-animation {
            text-align: center;
        }

        .success-animation i {
            margin-bottom: 1rem;
        }

        .success-animation h3 {
            color: #2e7d32;
            margin-bottom: 1rem;
        }

        .success-message-box {
            background: #e8f5e9;
            border-left: 4px solid #4caf50;
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            text-align: left;
        }

        .success-message-box p {
            color: #2e7d32;
            margin: 0;
            line-height: 1.5;
        }

        .info-box {
            background: #e3f2fd;
            border-radius: 8px;
            padding: 1rem;
            margin: 1rem 0;
            text-align: left;
            font-size: 0.9rem;
        }

        .info-box i {
            color: #0d47a1;
            margin-right: 8px;
        }

        .info-box a {
            color: #0d47a1;
            text-decoration: none;
            font-weight: 600;
        }

        .info-box a:hover {
            text-decoration: underline;
        }

        .error-animation {
            text-align: center;
        }

        .error-animation h3 {
            color: #e53935;
            margin: 1rem 0;
        }

        .error-message-box {
            background: #ffebee;
            border-left: 4px solid #e53935;
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            text-align: left;
        }

        .error-message-box p {
            color: #c62828;
            margin: 0;
        }

        .modal-buttons {
            display: flex;
            gap: 12px;
            margin-top: 1rem;
        }

        .modal-buttons button {
            flex: 1;
            padding: 12px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            border: none;
            font-size: 0.95rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, #0d47a1, #1a237e);
            color: white;
        }

        .btn-secondary {
            background: #e0e0e0;
            color: #333;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
        }

        .btn-secondary:hover {
            background: #ccc;
        }

        footer {
            background: white;
            padding: 32px 24px;
            text-align: center;
            border-top: 1px solid #eef2f6;
            margin-top: 40px;
        }

        .footer-logo {
            text-align: center;
            margin: 20px 0 5px 0;
        }

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

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            body {
                padding-top: 0;
            }

            .site-header {
                position: relative;
            }

            .logo-row {
                padding: 0.5rem 1rem;
            }

            .main-nav {
                padding: 0.2rem 1rem;
            }

            .company-logo {
                flex-wrap: wrap;
                justify-content: space-between;
            }

            .logo-group {
                flex: 0 0 auto;
            }

            .company-logo img {
                height: 42px;
            }

            .slogan-text {
                display: none;
            }

            .header-cta {
                flex-direction: column;
                gap: 6px;
                margin-left: auto;
            }

            .header-cta a {
                padding: 0.25rem 1rem;
                font-size: 0.8rem;
                text-align: center;
                min-width: 70px;
            }

            .nav-links {
                overflow-x: auto;
                white-space: nowrap;
                flex-wrap: nowrap;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 2px;
            }

     /* ==================================================================
       SAFARI-ONLY OVERRIDES (Android Chrome ignores this entirely)
       ================================================================== */
    @supports (-webkit-hyphens:none) {
		html {
        		font-size: 22px !important; /* Slightly scales up layout elements on dense screens, rendering 					identically to Android font-boosting */
    		}
    
    		body {
        		font-size: 22px !important;
    		}

        /* Scale up the image height slightly on Safari to match the visual look */
        .company-logo img { 
            height: 52px !important; 
        }

        /* Scale up the CTA button text and tap padding targets for iOS Safari */
        .header-cta a {
            font-size: 0.8rem !important;      /* Bumps font from 0.8rem up */
            padding: 0.4rem 1.1rem !important;  /* Bumps padding from 0.25rem up */
        }

        /* 1. Target Primary Login Page Inputs */
        #email, 
        #password,
        #resetEmail {
            font-size: 22px !important; 
            padding-top: 12px !important; 
            padding-bottom: 12px !important;
        }

        /* 2. CRITICAL FOR POP-UPS: Force text enlargement inside any Modal input box */
        .modal input[type="email"],
        .modal-content input,
        #forgotPasswordModal input {
            font-size: 22px !important;
            padding-top: 12px !important;
            padding-bottom: 12px !important;
        }

        /* 3. Target Primary Placeholders */
        #email::placeholder,
        #password::placeholder,
        #resetEmail::placeholder {
            font-size: 22px !important;
        }

        /* 4. Force placeholders inside the pop-up modal to scale up */
        .modal input::placeholder,
        .modal-content input::placeholder,
        #forgotPasswordModal input::placeholder {
            font-size: 22px !important;
        }

        /* 5. CRITICAL FOR POP-UP BUTTONS: Enlarge the Success Modal Close Button */
        #closeSuccessModal,
        .modal .btn-primary,
        .modal-content .btn-primary {
            font-size: 16px !important;       /* Clean font size boost for readability */
            padding: 14px 28px !important;    /* Bigger vertical/horizontal padding for a massive tap target */
            font-weight: 600 !important;      /* Makes the text slightly bolder and cleaner on Retina screens */
            min-height: 48px !important;      /* Recommended mobile touch target height guideline */
            width: 100% !important;           /* Optional: Optional expansion to take full modal width if needed */
            max-width: 200px;                 /* Restricts button from stretching too wide on wide viewports */
            margin: 8px auto !important;      /* Centers the button cleanly with top/bottom breathing room */
            display: block !important;
        }

    }

  }

            .login-card {
                padding: 1.5rem;
            }
            
            .logo h1 {
                font-size: 1.5rem;
            }

        .logo p {
            text-align: left;
        }
            
            input {
                padding: 12px 14px;
                font-size: 16px;
            }
            
            .password-container input {
                padding: 12px 45px 12px 14px;
            }

            .login-wrapper {
                padding: 1rem;
                min-height: auto;
            }
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 1.25rem;
            }
            
            .logo h1 {
                font-size: 1.3rem;
            }
            
            .register-link {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .modal-container {
                padding: 1.5rem;
            }
            
            .modal-buttons {
                flex-direction: column;
            }
            
            .modal-buttons button {
                width: 100%;
            }
        }

        @media (max-width: 360px) {
            .login-card {
                padding: 1rem;
            }
            
            .logo h1 {
                font-size: 1.2rem;
            }
        }
