body {
            font-family: 'Cairo', sans-serif;
            background: var(--body-bg);
            /* Soft, glowing radial background gradients that adapt to dark/light theme */
            background-image: radial-gradient(at 0% 0%, var(--primary-light) 0, transparent 40%),
                              radial-gradient(at 50% 0%, rgba(139, 92, 246, 0.05) 0, transparent 50%),
                              radial-gradient(at 100% 0%, var(--primary-light) 0, transparent 40%);
            background-color: var(--body-bg);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.3s;
            position: relative;
            overflow-x: hidden;
        }

        /* Subtle glowing background sphere behind the login container */
        .login-glow {
            position: absolute;
            width: 350px;
            height: 350px;
            background: var(--primary);
            filter: blur(140px);
            opacity: 0.12;
            z-index: 1;
            pointer-events: none;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .login-container {
            background: var(--card-bg);
            padding: 45px 35px;
            border-radius: var(--radius-xl);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-xl);
            width: 100%;
            max-width: 420px;
            text-align: center;
            position: relative;
            z-index: 10;
            transition: var(--transition);
        }

        .login-container h2 {
            margin-bottom: 25px;
            color: var(--text-primary);
            font-size: 24px;
            font-weight: 800;
        }

        .input-group {
            margin-bottom: 24px;
            text-align: right;
            position: relative;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 700;
            font-size: 13px;
            color: var(--text-primary);
            transition: var(--transition);
        }

        .input-group input {
            width: 100%;
            padding: 14px 44px 14px 14px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            box-sizing: border-box;
            transition: var(--transition);
            font-size: 15px;
            background: var(--card-bg-2);
            color: var(--text-primary);
            font-family: 'Cairo', sans-serif;
        }

        .input-group input:focus {
            border-color: var(--primary);
            background: var(--card-bg);
            outline: none;
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .input-group i {
            position: absolute;
            right: 14px;
            top: 48px;
            color: var(--text-muted);
            font-size: 16px;
            transition: var(--transition);
            pointer-events: none;
        }

        .input-group input:focus ~ i {
            color: var(--primary);
        }

        .login-btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: var(--radius-md);
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
            color: white;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            margin-top: 10px;
            font-family: 'Cairo', sans-serif;
            transition: var(--transition);
            box-shadow: var(--shadow-md);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px var(--primary-glow);
        }

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

        .login-btn:disabled {
            background: var(--border-color);
            color: var(--text-muted);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        #errorMessage:not(:empty) {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--danger-light);
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.15);
            padding: 12px 14px;
            border-radius: var(--radius-md);
            margin-bottom: 20px;
            font-size: 13px;
            font-weight: 600;
            text-align: right;
            animation: shake 0.4s ease;
        }

        #errorMessage:not(:empty)::before {
            content: "\f071";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            font-size: 14px;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-6px); }
            75% { transform: translateX(6px); }
        }

        .register-suggestion {
            margin-top: 25px;
            font-size: 13px;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
            color: var(--text-secondary);
        }

        .register-suggestion a {
            color: var(--primary);
            font-weight: 700;
            text-decoration: none;
            transition: var(--transition);
        }

        .register-suggestion a:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }

        .pricing-link-container {
            margin-top: 12px;
            display: flex;
            justify-content: center;
        }

        .pricing-link-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 8px 18px;
            background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.03));
            border: 1px dashed var(--purple);
            border-radius: 30px;
            color: var(--purple) !important;
            font-weight: 700;
            text-decoration: none;
            font-size: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: 0 0 10px rgba(124, 58, 237, 0.05);
            animation: pulse-purple 2s infinite, float-button 3s infinite ease-in-out;
            overflow: hidden;
            z-index: 1;
        }

        .pricing-link-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -150%;
            width: 50%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(124, 58, 237, 0.25) 50%,
                rgba(255, 255, 255, 0) 100%
            );
            transform: skewX(-25deg);
            pointer-events: none;
            animation: shimmer-btn 4s infinite ease-in-out;
            z-index: -1;
        }

        .pricing-link-btn:hover {
            background: linear-gradient(135deg, var(--purple), #8b5cf6);
            color: #ffffff !important;
            box-shadow: 0 0 25px rgba(124, 58, 237, 0.55);
            border-color: transparent;
            transform: translateY(-4px) scale(1.03);
            text-decoration: none !important;
            animation: pulse-purple 1.5s infinite; /* Speed up pulse on hover, pause float */
        }

        .pricing-link-btn:hover::before {
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.4) 50%,
                rgba(255, 255, 255, 0) 100%
            );
            animation: shimmer-btn 1.5s infinite ease-in-out;
        }

        .pricing-link-btn i {
            font-size: 13px;
            display: inline-block;
            transition: transform 0.3s ease;
            animation: rocketFloat 2.2s infinite ease-in-out;
        }

        .pricing-link-btn:hover i {
            animation: rocketLaunch 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }

        @keyframes pulse-purple {
            0% {
                box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
            }
        }

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

        @keyframes shimmer-btn {
            0% {
                left: -150%;
            }
            50% {
                left: 150%;
            }
            100% {
                left: 150%;
            }
        }

        @keyframes rocketFloat {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-2px) rotate(-4deg);
            }
        }

        @keyframes rocketLaunch {
            0% {
                transform: translate(0, 0) scale(1) rotate(0deg);
                opacity: 1;
            }
            30% {
                transform: translate(2px, 2px) scale(0.9) rotate(5deg);
                opacity: 1;
            }
            45% {
                transform: translate(-25px, -25px) scale(1.15) rotate(-10deg);
                opacity: 0;
            }
            46% {
                transform: translate(25px, 25px) scale(0.8) rotate(-10deg);
                opacity: 0;
            }
            75% {
                transform: translate(-3px, -3px) scale(1.05) rotate(0deg);
                opacity: 0.8;
            }
            100% {
                transform: translate(0, 0) scale(1) rotate(0deg);
                opacity: 1;
            }
        }