        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .bg-pattern {
            background-color: #f8fafc;
            background-image:
                linear-gradient(135deg, rgba(0, 178, 169, 0.04) 0%, transparent 50%, rgba(0, 139, 132, 0.03) 100%);
            position: relative;
            overflow: hidden;
        }
        .bg-pattern::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(to right, rgba(0, 178, 169, 0.05) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(0, 178, 169, 0.05) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
            -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
        }

        .glass-card {
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(0, 178, 169, 0.12);
            box-shadow:
                0 8px 32px -4px rgba(0, 0, 0, 0.08),
                0 4px 16px -4px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .glass-card:hover {
            box-shadow:
                0 12px 40px -8px rgba(0, 0, 0, 0.12),
                0 6px 20px -6px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        .btn-login {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #475569 0%, #334155 100%);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .btn-login:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(71, 85, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }
        .btn-login:active {
            transform: translateY(-1px) scale(0.98);
        }
        .btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
            transition: left 0.5s ease;
        }
        .btn-login:hover::before {
            left: 100%;
        }

        .alert-glass {
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(16px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .animate-fade-in {
            animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        /* Subtle floating animation for the card */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }
        .float-animation {
            animation: float 6s ease-in-out infinite;
        }

        /* Login button connecting state */
        .btn-login.connecting {
            pointer-events: none;
            background: linear-gradient(135deg, #475569 0%, #3d4f63 100%);
            transform: translateY(0);
            box-shadow: 0 4px 16px rgba(71, 85, 105, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        .btn-login.connecting::before {
            display: none;
        }
        .btn-login.connecting:hover {
            transform: translateY(0);
        }

        /* Text crossfade */
        .btn-login .btn-label {
            transition: opacity 0.25s ease;
        }
        .btn-login.connecting .btn-label {
            opacity: 0;
            position: absolute;
        }
        .btn-login .btn-connecting-label {
            display: none;
            align-items: center;
            gap: 0.5rem;
            opacity: 0;
            transition: opacity 0.3s ease 0.1s;
        }
        .btn-login.connecting .btn-connecting-label {
            display: flex;
            opacity: 1;
        }

        /* Animated dots */
        .connecting-dots {
            display: flex;
            align-items: center;
            gap: 3px;
        }
        .connecting-dots span {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.7);
            animation: dotPulse 1.2s ease-in-out infinite;
        }
        .connecting-dots span:nth-child(2) {
            animation-delay: 0.15s;
        }
        .connecting-dots span:nth-child(3) {
            animation-delay: 0.3s;
        }
        @keyframes dotPulse {
            0%, 80%, 100% {
                opacity: 0.3;
                transform: scale(0.8);
            }
            40% {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Status text fade-in */
        .connecting-status {
            overflow: hidden;
            max-height: 0;
            opacity: 0;
            transition: max-height 0.4s ease, opacity 0.4s ease 0.3s;
        }
