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

        :root {
            --primary: #dc2626;
            --primary-dark: #991b1b;
            --primary-light: #fef2f2;
            --secondary: #0f172a;
            --accent: #f97316;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --border: #e5e7eb;
            --success: #10b981;
            --warning: #f59e0b;
        }

        html, body {
            width: 100%;
            height: 100%;
            overflow-x: hidden;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #0f172a;
        }

        .login-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
            overflow: hidden;
            padding: 20px;
        }

        /* 3D Background Effect */
        #vanta-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .login-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            max-width: 1200px;
            width: 100%;
            position: relative;
            z-index: 10;
            align-items: center;
        }

        .image-section {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            height: 600px;
            animation: slideInLeft 1s ease-out;
        }

        .image-frame {
            position: relative;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            transition: all 0.5s ease;
        }

        .image-frame:hover {
            border-color: rgba(220, 38, 38, 0.3);
            box-shadow: 0 25px 50px rgba(220, 38, 38, 0.2);
            transform: translateY(-10px);
        }

        .image-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(95%) contrast(110%);
            transition: transform 0.5s ease;
        }

        .image-frame:hover img {
            transform: scale(1.05);
        }

        .image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(153, 27, 27, 0.1) 100%);
            z-index: 5;
        }

        .badge-float {
            position: absolute;
            background: var(--primary);
            color: white;
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 20;
            box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
            animation: float 3s ease-in-out infinite;
        }

        .badge-float:nth-child(1) {
            top: 20px;
            right: 20px;
            animation-delay: 0s;
        }

        .badge-float:nth-child(2) {
            bottom: 20px;
            left: 20px;
            animation-delay: 1s;
        }

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

        .form-section {
            display: flex;
            flex-direction: column;
            gap: 30px;
            animation: slideInRight 1s ease-out;
        }

        .auth-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            padding: 35px 30px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
            width: 520px;
            margin: 0 auto;
        }

        @media (max-width: 600px) {
            .auth-card {
                width: 100%;
            }
        }

        .auth-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
            animation: shimmer-gradient 3s infinite;
        }

        @keyframes shimmer-gradient {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

        .header-section {
            text-align: center;
            margin-bottom: 30px;
        }

        .logo-container {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 20px;
            margin-bottom: 15px;
            box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
        }

        .logo-container img {
            width: 45px;
            height: 45px;
            filter: brightness(0) invert(1);
        }

        .header-section h1 {
            font-size: 2rem;
            color: var(--text-dark);
            margin-bottom: 5px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -1px;
        }

        .header-section p {
            color: var(--text-light);
            font-size: 0.9rem;
            margin: 0;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-label {
            color: var(--text-dark);
            font-weight: 700;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
        }

        .form-input-group {
            position: relative;
            display: flex;
            align-items: center;
        }

        .form-input {
            width: 100%;
            padding: 14px 18px;
            background: rgba(255, 255, 255, 0.7);
            border: 2px solid var(--border);
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            outline: none;
            color: var(--text-dark);
        }

        .form-input::placeholder {
            color: var(--text-light);
        }

        .form-input:focus {
            background: white;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
            transform: translateY(-2px);
        }

        .password-toggle {
            position: absolute;
            right: 18px;
            cursor: pointer;
            color: var(--text-light);
            font-size: 1.2rem;
            transition: all 0.3s ease;
            user-select: none;
        }

        .password-toggle:hover {
            color: var(--primary);
            transform: scale(1.2);
        }

        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            margin: 20px 0;
        }

        .form-check {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .form-check input {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: var(--primary);
            transition: all 0.3s ease;
        }

        .form-check label {
            color: var(--text-dark);
            font-weight: 500;
            cursor: pointer;
            user-select: none;
            margin: 0;
        }

        .forgot-password {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .forgot-password:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .btn-login {
            width: 100%;
            padding: 16px 24px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
            margin-top: 20px;
        }

        .btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: left 0.5s ease;
            z-index: 1;
        }

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

        .btn-login:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
        }

        .btn-login:active {
            transform: translateY(-1px);
        }

        .btn-login span {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-login.loading {
            pointer-events: none;
            opacity: 0.7;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            display: none;
        }

        .btn-login.loading .spinner {
            display: inline-block;
        }

        .btn-login.loading .text {
            display: none;
        }

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

        .alerts-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .alert {
            padding: 15px 20px;
            border-radius: 12px;
            border-left: 4px solid;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            font-weight: 500;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .alert-success {
            background: rgba(16, 185, 129, 0.1);
            border-left-color: var(--success);
            color: #047857;
        }

        .alert-danger {
            background: rgba(220, 38, 38, 0.1);
            border-left-color: var(--primary);
            color: #991b1b;
        }

        .error-message {
            color: var(--primary);
            font-size: 0.85rem;
            font-weight: 500;
            margin-top: 5px;
            display: flex;
            align-items: center;
            gap: 5px;
            animation: shake 0.4s ease-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
            20%, 40%, 60%, 80% { transform: translateX(3px); }
        }

        .divider {
            text-align: center;
            margin: 30px 0;
            position: relative;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--border);
        }

        .divider span {
            position: relative;
            background: white;
            padding: 0 15px;
            color: var(--text-light);
            font-size: 0.85rem;
            font-weight: 500;
        }

        .social-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .social-btn {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            border: 2px solid var(--border);
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: var(--text-dark);
            font-size: 1.2rem;
        }

        .social-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(220, 38, 38, 0.2);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .login-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .image-section {
                display: none;
            }

            .auth-card {
                padding: 40px 30px;
            }

            .header-section h1 {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .login-container {
                padding: 15px;
            }

            .auth-card {
                padding: 30px 20px;
            }

            .header-section h1 {
                font-size: 1.8rem;
            }

            .remember-forgot {
                flex-direction: column;
                align-items: flex-start;
            }

            .form-input {
                font-size: 16px; /* Prevent zoom on mobile */
            }
        }

        /* Loading state */
        .btn-login:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        /* Validation styles */
        .form-input.is-invalid {
            border-color: var(--primary);
            background: rgba(220, 38, 38, 0.05);
        }

        .floating-icon {
            position: fixed;
            font-size: 4rem;
            opacity: 0.1;
            pointer-events: none;
            z-index: 0;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }