
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
        }
        
        .auth-container {
            perspective: 1000px;
            min-height: 520px;
        }
        
        .auth-card {
            transition: transform 0.6s;
            transform-style: preserve-3d;
            height: 100%;
        }
        
        .auth-card.flipped {
            transform: rotateY(180deg);
        }
        
        .auth-front, .auth-back {
            backface-visibility: hidden;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: auto;
            min-height: 100%;
        }
        
        .auth-back {
            transform: rotateY(180deg);
        }
        
        .input-3d {
            border: 1px solid #e2e8f0;
            transition: all 0.3s ease;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
        }
        
        .input-3d:focus {
            border-color: #8b5cf6;
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
        }
        
        .btn-primary {
            background: linear-gradient(to right, #6366f1, #8b5cf6);
            transition: all 0.3s ease;
        }
        
        .btn-primary:hover {
            background: linear-gradient(to right, #8b5cf6, #6366f1);
            transform: translateY(-2px);
        }
        
        .social-btn {
            transition: all 0.3s ease;
            border: 1px solid #e2e8f0;
        }
        
        .social-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        
        .divider {
            display: flex;
            align-items: center;
            text-align: center;
            color: #94a3b8;
        }
        
        .divider::before, .divider::after {
            content: "";
            flex: 1;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .divider::before {
            margin-right: 1rem;
        }
        
        .divider::after {
            margin-left: 1rem;
        }
        
        .floating {
            animation: floating 6s ease-in-out infinite;
        }
        
        @keyframes floating {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0px); }
        }
        
        .pulse-animation {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        /* Alert styles */
        .alert {
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
            border-radius: 0.375rem;
        }
        
        .alert-success {
            background-color: #ecfdf5;
            color: #065f46;
            border-left: 4px solid #10b981;
        }
        
        .alert-error {
            background-color: #fef2f2;
            color: #991b1b;
            border-left: 4px solid #ef4444;
        }
        
        /* Enhanced Mobile Responsiveness */
        @media (max-width: 640px) {
            .auth-container {
                min-height: auto;
            }
            
            .auth-front, .auth-back {
                padding: 1.5rem !important;
            }
            
            .floating {
                display: none;
            }
            
            .text-3xl {
                font-size: 1.875rem !important;
            }
            
            .space-y-6 > * + * {
                margin-top: 1rem !important;
            }
        }
        
        @media (max-width: 475px) {
            body {
                font-size: 14px;
            }
            
            .text-2xl {
                font-size: 1.5rem !important;
            }
            
            .py-8 {
                padding-top: 1.5rem !important;
                padding-bottom: 1.5rem !important;
            }
            
            .px-8 {
                padding-left: 1rem !important;
                padding-right: 1rem !important;
            }
            
            .text-sm {
                font-size: 0.8125rem !important;
            }
        }
        
        /* Portrait mode adjustments */
        @media (max-width: 767px) and (orientation: portrait) {
            /* Add this to your style section */
            .min-h-screen {
                min-height: 100vh !important;
            }

            .auth-container {
                perspective: 1000px;
                /* min-height: 520px; - Remove this fixed min-height */
            }

            /* Make sure display flex is properly working through all parent elements */
            #auth-wrapper, 
            .w-full.max-w-5xl.mx-auto,
            .grid.grid-cols-1.lg\:grid-cols-2.gap-6.lg\:gap-12.items-center,
            .w-full.max-w-md.mx-auto {
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
            
            .auth-card {
                transform-style: preserve-3d; /* Keep this for the 3D effect */
            }
            
            .auth-front, .auth-back {
                position: absolute; /* Keep absolute positioning for the flip effect */
                height: auto;
                min-height: 100%;
                width: 100%;
                backface-visibility: hidden; /* Essential for the flip effect */
            }
            
            /* Keep the original transform for the back side */
            .auth-back {
                transform: rotateY(180deg);
            }
        }
        
        /* Tablet specific improvements */
        @media (min-width: 641px) and (max-width: 1023px) {
            .max-w-5xl {
                max-width: 100% !important;
                padding: 0 1rem;
            }
            
            .grid-cols-1 {
                grid-template-columns: 1fr !important;
            }
        }
        /* --------------------------------------------------------preloader--------------------------------------------------------------------------- */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out;
        }
        
        .loading-logo {
            display: flex;
            align-items: center;
            margin-bottom: 2rem;
        }
        
        .loading-logo i {
            font-size: 3rem;
            color: white;
            margin-right: 1rem;
        }
        
        .loading-logo span {
            font-size: 2.5rem;
            font-weight: bold;
            color: white;
        }
        
        .loading-logo span span {
            color: #fef08a;
        }
        
        .printer-container {
            width: 200px;
            height: 150px;
            position: relative;
            margin-bottom: 2rem;
        }
        
        .printer {
            width: 100%;
            height: 100%;
            position: relative;
        }
        
        .printer-body {
            width: 160px;
            height: 100px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 10px;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .printer-head {
            width: 180px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 8px;
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .printer-nozzle {
            width: 30px;
            height: 20px;
            background: #4b5563;
            border-radius: 0 0 5px 5px;
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .filament {
            width: 4px;
            height: 0;
            background: #8b5cf6;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            animation: filament-extrude 2s infinite;
        }
        
        .print-bed {
            width: 140px;
            height: 10px;
            background: #d1d5db;
            border-radius: 3px;
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .print-model {
            width: 60px;
            height: 0;
            background: linear-gradient(to top, #8b5cf6, #6366f1);
            border-radius: 5px 5px 0 0;
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            animation: model-grow 2s infinite;
        }
        
        .loading-text {
            color: white;
            font-size: 1.2rem;
            margin-top: 1rem;
            text-align: center;
            position: relative;
        }
        
        .loading-dots {
            display: inline-block;
            width: 20px;
            text-align: left;
        }
        
        .loading-dots span {
            opacity: 0;
            animation: dot-animation 1.5s infinite;
        }
        
        .loading-dots span:nth-child(1) {
            animation-delay: 0.2s;
        }
        
        .loading-dots span:nth-child(2) {
            animation-delay: 0.4s;
        }
        
        .loading-dots span:nth-child(3) {
            animation-delay: 0.6s;
        }
        
        @keyframes filament-extrude {
            0% { height: 0; }
            50% { height: 80px; }
            100% { height: 0; }
        }
        
        @keyframes model-grow {
            0% { height: 0; }
            50% { height: 40px; }
            100% { height: 80px; }
        }
        
        @keyframes dot-animation {
            0% { opacity: 0; }
            50% { opacity: 1; }
            100% { opacity: 0; }
        }
        
        .progress-bar {
            width: 200px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            margin-top: 1rem;
            overflow: hidden;
        }
        
        .progress {
            height: 100%;
            background: white;
            width: 0%;
            border-radius: 2px;
            animation: progress-loading 3s ease-out forwards;
        }
        
        @keyframes progress-loading {
            0% { width: 0%; }
            100% { width: 100%; }
        }