       * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'Arial', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
            overflow-x: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        /* Enhanced Background Animation */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.2) 0%, transparent 50%);
            z-index: -1;
            animation: backgroundFloat 20s ease-in-out infinite;
        }

        @keyframes backgroundFloat {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            33% { transform: translateY(-20px) rotate(1deg); }
            66% { transform: translateY(10px) rotate(-1deg); }
        }

        /* Floating particles */
        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            pointer-events: none;
            animation: float 15s infinite linear;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) rotate(360deg);
                opacity: 0;
            }
        }

        /* Login Container */
        .login-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            border-radius: 25px;
            padding: 40px;
            max-width: 450px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.8s ease-out;
        }

        .login-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            animation: shimmer 3s ease-in-out infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
            100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(50px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Header */
        .auth-header {
            text-align: center;
            margin-bottom: 35px;
            position: relative;
            z-index: 1;
        }

        .auth-header h1 {
            color: #2c3e50;
            font-size: 2.5rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: titleGlow 2s ease-in-out infinite alternate;
        }

        @keyframes titleGlow {
            0% { filter: brightness(1); }
            100% { filter: brightness(1.2); }
        }

        .auth-header p {
            color: #6c757d;
            font-size: 1.1rem;
            animation: fadeInUp 0.6s ease-out 0.3s both;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Form Styles */
        .auth-form {
            position: relative;
            z-index: 1;
        }

        .form-group {
            margin-bottom: 25px;
            animation: slideInLeft 0.6s ease-out both;
        }

        .form-group:nth-child(1) { animation-delay: 0.1s; }
        .form-group:nth-child(2) { animation-delay: 0.2s; }
        .form-group:nth-child(3) { animation-delay: 0.3s; }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #2c3e50;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .form-input {
            width: 100%;
            padding: 15px;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            background: rgba(248, 249, 250, 0.8);
        }

        .form-input:focus {
            outline: none;
            border-color: #4CAF50;
            box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
            transform: translateY(-2px);
            background: white;
        }

        .form-input.error {
            border-color: #e74c3c;
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
            animation: shake 0.5s ease-in-out;
        }

        .form-input.valid {
            border-color: #28a745;
            background: rgba(212, 237, 218, 0.1);
        }

        .form-input.valid:focus {
            box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        .error-message {
            color: #e74c3c;
            font-size: 0.85rem;
            margin-top: 5px;
            display: none;
            animation: fadeInUp 0.3s ease-out;
        }

        .error-message.show {
            display: block;
        }

        /* Password visibility toggle */
        .password-input {
            position: relative;
        }

        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #6c757d;
            cursor: pointer;
            padding: 5px;
            transition: color 0.3s ease;
        }

        .password-toggle:hover {
            color: #4CAF50;
        }

        /* Remember me and forgot password */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 20px 0;
            font-size: 0.9rem;
            animation: slideInLeft 0.6s ease-out 0.4s both;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #6c757d;
        }

        .remember-me input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: #4CAF50;
        }

        .forgot-password {
            color: #4CAF50;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .forgot-password:hover {
            color: #45a049;
            text-decoration: underline;
        }

        /* Submit Button */
        .submit-btn {
            width: 100%;
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
            border: none;
            padding: 18px;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            animation: fadeInUp 0.6s ease-out 0.5s both;
        }

        .submit-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.4s ease;
        }

        .submit-btn:hover:not(:disabled)::before {
            width: 300px;
            height: 300px;
        }

        .submit-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, #45a049, #4CAF50);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
        }

        .submit-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            opacity: 0.7;
        }

        /* Loading Animation */
        .loading {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #4CAF50;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Social Login Section */
        .social-login {
            margin: 30px 0;
            position: relative;
            z-index: 1;
            animation: fadeInUp 0.6s ease-out 0.6s both;
        }

        .social-divider {
            text-align: center;
            margin: 25px 0;
            position: relative;
        }

        .social-divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: #dee2e6;
        }

        .social-divider span {
            background: rgba(255, 255, 255, 0.95);
            padding: 0 20px;
            color: #6c757d;
            font-size: 0.9rem;
        }

        .login-with-google-btn {
            width: 100%;
            background: white;
            color: #333;
            border: 2px solid #ddd;
            padding: 15px;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            position: relative;
            overflow: hidden;
        }

        .google-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(66, 133, 244, 0.1);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
        }

        .google-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .google-btn:hover {
            border-color: #4285f4;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(66, 133, 244, 0.2);
        }

        .google-icon {
            width: 20px;
            height: 20px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%234285f4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path fill="%2334a853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path fill="%23fbbc05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/><path fill="%23ea4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/></svg>') no-repeat center;
            background-size: contain;
        }

        /* Register Link */
        .auth-switch {
            text-align: center;
            margin-top: 30px;
            position: relative;
            z-index: 1;
            animation: fadeInUp 0.6s ease-out 0.7s both;
        }

        .auth-switch p {
            color: #6c757d;
            margin-bottom: 15px;
        }

        .auth-switch a {
            color: #4CAF50;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            padding: 10px 25px;
            border: 2px solid #4CAF50;
            border-radius: 25px;
            display: inline-block;
        }

        .auth-switch a:hover {
            background: #4CAF50;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
        }

        /* Success/Error Messages */
        .message {
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 25px;
            animation: slideInDown 0.5s ease-out;
            position: relative;
            z-index: 1;
        }

        

        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.success {
            background: linear-gradient(135deg, #d4edda, #c3e6cb);
            color: #155724;
            border: 2px solid #28a745;
        }

        .message.error {
            background: linear-gradient(135deg, #f8d7da, #f5c6cb);
            color: #721c24;
            border: 2px solid #dc3545;
        }


        /* Resend OTP Form Styling */
    .resend-otp-form {
        margin-top: 16px;
        display: inline-block;
    }

    /* Resend OTP Button Styling */
    .resend-otp-btn {
        background: none;
        border: 1px solid #6b7280;
        color: #6b7280;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    .resend-otp-btn:hover {
        background-color: #f9fafb;
        border-color: #4b5563;
        color: #4b5563;
    }

    .resend-otp-btn:focus {
        outline: none;
        border-color: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

    .resend-otp-btn:active {
        background-color: #f3f4f6;
        transform: translateY(1px);
    }

    /* Alternative styling that matches the green theme better */
    .resend-otp-btn-green {
        background: none;
        border: 1px solid #10b981;
        color: #10b981;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    .resend-otp-btn-green:hover {
        background-color: #10b981;
        color: white;
    }

    .resend-otp-btn-green:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }

    .resend-otp-btn-green:active {
        background-color: #059669;
        transform: translateY(1px);
    }

    /* Disabled state for cooldown period */
    .resend-otp-btn:disabled,
    .resend-otp-btn-green:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #f9fafb;
        color: #9ca3af;
        border-color: #d1d5db;
    }

    .resend-otp-btn:disabled:hover,
    .resend-otp-btn-green:disabled:hover {
        background: #f9fafb;
        color: #9ca3af;
        border-color: #d1d5db;
        transform: none;
    }

    /* ===== MEDIA QUERIES FOR RESPONSIVENESS ===== */

    /* Large screens (1200px and up) */
    @media (min-width: 1200px) {
        .resend-otp-btn,
        .resend-otp-btn-green {
            padding: 10px 20px;
            font-size: 15px;
        }
    }

    /* Medium screens (768px to 1199px) - Tablets */
    @media (min-width: 768px) and (max-width: 1199px) {
        .resend-otp-form {
            margin-top: 18px;
        }
        
        .resend-otp-btn,
        .resend-otp-btn-green {
            padding: 9px 18px;
            font-size: 14px;
            min-width: 120px;
        }
    }

    /* Small screens (480px to 767px) - Large mobile */
    @media (min-width: 480px) and (max-width: 767px) {
        .resend-otp-form {
            margin-top: 16px;
            width: 100%;
            text-align: center;
        }
        
        .resend-otp-btn,
        .resend-otp-btn-green {
            padding: 12px 24px;
            font-size: 14px;
            min-width: 140px;
            width: auto;
            max-width: 200px;
        }
    }

    /* Extra small screens (320px to 479px) - Small mobile */
    @media (max-width: 479px) {
        .resend-otp-form {
            margin-top: 14px;
            width: 100%;
            text-align: center;
        }
        
        .resend-otp-btn,
        .resend-otp-btn-green {
            padding: 14px 20px;
            font-size: 13px;
            width: 100%;
            max-width: 280px;
            min-height: 44px; /* Better touch target for mobile */
            border-radius: 8px;
        }
    }

    /* Ultra small screens (below 320px) */
    @media (max-width: 319px) {
        .resend-otp-form {
            margin-top: 12px;
            width: 100%;
        }
        
        .resend-otp-btn,
        .resend-otp-btn-green {
            padding: 16px 16px;
            font-size: 12px;
            width: 100%;
            min-height: 48px;
            border-radius: 6px;
            font-weight: 600;
        }
    }

    /* Landscape orientation adjustments for mobile */
    @media (max-width: 767px) and (orientation: landscape) {
        .resend-otp-form {
            margin-top: 12px;
        }
        
        .resend-otp-btn,
        .resend-otp-btn-green {
            padding: 10px 20px;
            min-height: 40px;
        }
    }

    /* High DPI/Retina display adjustments */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
        .resend-otp-btn,
        .resend-otp-btn-green {
            border-width: 0.5px; /* Thinner borders on high DPI screens */
        }
    }

    /* Touch device optimizations */
    @media (hover: none) and (pointer: coarse) {
        .resend-otp-btn,
        .resend-otp-btn-green {
            min-height: 44px; /* Apple's recommended minimum touch target */
            padding: 12px 20px;
        }
        
        /* Remove hover effects on touch devices */
        .resend-otp-btn:hover,
        .resend-otp-btn-green:hover {
            background: none;
            border-color: inherit;
            color: inherit;
            transform: none;
        }
        
        /* Enhanced active state for touch feedback */
        .resend-otp-btn:active,
        .resend-otp-btn-green:active {
            background-color: #f3f4f6;
            transform: scale(0.98);
            transition: all 0.1s ease;
        }
    }

        /* Responsive Design */
        @media (max-width: 768px) {
            .login-container {
                padding: 30px 25px;
                margin: 10px;
            }

            .auth-header h1 {
                font-size: 2.2rem;
            }

            .form-input {
                padding: 12px;
            }

            .submit-btn, .google-btn {
                padding: 15px;
            }

            .form-options {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .login-container {
                padding: 25px 20px;
            }

            .auth-header h1 {
                font-size: 2rem;
            }

            .form-group {
                margin-bottom: 20px;
            }
        }