/* Login UX Enhancement - Pixel Game Style */

/* Pixel Game Loader Styles */
@keyframes pixelBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes pixelProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes pixelFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes pixelDots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

@keyframes pixelGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.pixel-loader-container {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pixel-loader-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, #fff, transparent),
        radial-gradient(3px 3px at 30% 40%, #ffd700, transparent),
        radial-gradient(2px 2px at 50% 15%, #fff, transparent),
        radial-gradient(2px 2px at 70% 60%, #87ceeb, transparent),
        radial-gradient(3px 3px at 85% 25%, #fff, transparent),
        radial-gradient(2px 2px at 20% 80%, #ffd700, transparent),
        radial-gradient(2px 2px at 60% 85%, #fff, transparent);
    animation: pixelBlink 2s ease-in-out infinite;
}

.pixel-game-icon {
    font-size: 72px;
    animation: pixelFloat 1.5s ease-in-out infinite;
    margin-bottom: 24px;
    z-index: 1;
}

.pixel-loading-text {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 16px;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #000;
    z-index: 1;
    letter-spacing: 2px;
}

.pixel-loading-dots::after {
    content: '';
    animation: pixelDots 1.5s steps(4) infinite;
}

.pixel-progress-frame {
    width: 280px;
    height: 32px;
    border: 4px solid #ffd700;
    background: #0a0a1a;
    box-shadow: 0 0 0 4px #000, inset 0 0 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.pixel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #ff00ff, #ffd700);
    background-size: 200% 100%;
    animation: pixelProgress 2.5s ease-in-out infinite alternate, pixelGradient 1s linear infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.pixel-loading-tip {
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #87ceeb;
    margin-top: 20px;
    z-index: 1;
    text-shadow: 1px 1px 0 #000;
}

/* Google Login Button - Arcade Style */
@keyframes arcadeGlow {

    0%,
    100% {
        box-shadow: var(--pixel-shadow), 0 0 10px rgba(66, 133, 244, 0.3);
    }

    50% {
        box-shadow: var(--pixel-shadow), 0 0 25px rgba(66, 133, 244, 0.6), 0 0 40px rgba(66, 133, 244, 0.3);
    }
}

@keyframes arcadePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

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

    50%,
    100% {
        left: 150%;
    }
}

.pixel-btn-google-primary {
    background: linear-gradient(180deg, #4285F4 0%, #3367D6 100%);
    color: white;
    border: 4px solid #1a237e;
    box-shadow: var(--pixel-shadow), 0 0 15px rgba(66, 133, 244, 0.4);
    animation: arcadeGlow 2s ease-in-out infinite, arcadePulse 3s ease-in-out infinite;
    font-size: 22px;
    padding: 18px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.pixel-btn-google-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.pixel-btn-google-primary:hover {
    transform: translate(2px, 2px) scale(1.02);
    box-shadow: 2px 2px 0 #1a237e, 0 0 30px rgba(66, 133, 244, 0.7);
    background: linear-gradient(180deg, #5c9aff 0%, #4285F4 100%);
}

.pixel-btn-google-primary:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.google-icon-box {
    background: white;
    border-radius: 4px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Traditional Login Toggle Button */
.traditional-login-toggle {
    background: transparent;
    border: 2px dashed #b2bec3;
    padding: 12px 16px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #636e72;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.traditional-login-toggle:hover {
    border-color: #6c5ce7;
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.05);
}

/* Collapsible Traditional Login Content */
.traditional-login-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0;
}

.traditional-login-content.expanded {
    max-height: 500px;
    opacity: 1;
    padding-top: 16px;
}

/* Recommendation Text */
.login-recommendation {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #00b894;
    text-align: center;
    margin-bottom: 16px;
}