/* Enhanced Auth Modal Styles v4 — Zeus (goa5.png) Background */

.auth-card-enhanced {
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(165deg, rgba(13,15,23,0.88) 0%, rgba(26,29,43,0.92) 50%, rgba(13,15,23,0.88) 100%),
        url('/images/branding/goa5.png') center 30% / cover no-repeat;
    background-color: #0D0F17;
}

#loginModal .auth-card-enhanced,
#registerModal .auth-card-enhanced {
    background:
        linear-gradient(165deg, rgba(13,15,23,0.88) 0%, rgba(26,29,43,0.92) 50%, rgba(13,15,23,0.88) 100%),
        url('/images/branding/goa5.png') center 30% / cover no-repeat;
    background-color: #0D0F17;
}

/* Decorative floating casino icons */
.auth-card-enhanced::before,
.auth-card-enhanced::after {
    position: absolute;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
    font-weight: 900;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.auth-card-enhanced::before {
    content: '\f3a5';
    font-size: 8rem;
    top: -20px;
    right: -15px;
    transform: rotate(15deg);
    color: #FFD700;
}

.auth-card-enhanced::after {
    content: '\f51e';
    font-size: 6rem;
    bottom: 10px;
    left: -10px;
    transform: rotate(-10deg);
    color: #d946ef;
}

/* Ensure all card content sits above background */
.auth-card-enhanced > * {
    position: relative;
    z-index: 1;
}

/* Casino accent bar under title */
.auth-card-enhanced .auth-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #d946ef, #6246EA);
    border-radius: 3px;
    margin: 8px auto 0;
}

/* Enhanced bonus tag */
.auth-bonus-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    animation: bonusTagPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes bonusTagPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.2); }
}

.auth-emoji {
    display: inline-block;
    animation: emojiSpin 3s ease-in-out infinite;
}

@keyframes emojiSpin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* Enhanced form inputs */
.auth-card-enhanced .form-group input,
.auth-card-enhanced .form-group select {
    border: 1px solid rgba(98, 70, 234, 0.3);
    transition: all 0.3s;
    background: rgba(13, 15, 23, 0.8);
}

.auth-card-enhanced .form-group input:focus,
.auth-card-enhanced .form-group select:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Animated gradient submit button */
.auth-card-enhanced .btn-auth-submit {
    background: linear-gradient(135deg, #d946ef 0%, #ec4899 50%, #FFD700 100%);
    background-size: 200% 100%;
    animation: submitGradient 3s ease infinite;
    position: relative;
    z-index: 1;
}

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

/* Google OAuth button */
.auth-card-enhanced .google-oauth-btn {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-card-enhanced .google-oauth-btn:hover {
    border-color: rgba(255, 215, 0, 0.3);
}

/* Trust badges — directly below submit button */
.auth-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 12px 0 4px;
    position: relative;
    z-index: 1;
}

.auth-trust-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #999;
    white-space: nowrap;
}

.auth-trust-badge i {
    font-size: 0.85rem;
}

.auth-trust-badge.badge-secure i { color: #4ade80; }
.auth-trust-badge.badge-crypto i { color: #f7931a; }
.auth-trust-badge.badge-visa i { color: #1a1f71; font-size: 1.1rem; }
.auth-trust-badge.badge-mastercard i { color: #eb001b; font-size: 1.1rem; }
.auth-trust-badge.badge-games i { color: #d946ef; }

/* Mobile adjustments */
@media (max-width: 480px) {
    .auth-bonus-tag {
        font-size: 0.65rem;
        padding: 5px 12px;
    }
    .auth-card-enhanced::before {
        font-size: 5rem;
        top: -10px;
        right: -10px;
    }
    .auth-card-enhanced::after {
        font-size: 4rem;
    }
    .auth-trust-badges {
        gap: 6px 10px;
    }
    .auth-trust-badge {
        font-size: 0.6rem;
    }
    .auth-trust-badge i {
        font-size: 0.75rem;
    }
    .auth-trust-badge.badge-visa i,
    .auth-trust-badge.badge-mastercard i {
        font-size: 0.9rem;
    }
}

/* Performance: Isolate modals from heavy page animations */
.auth-card-enhanced {
    isolation: isolate;
    transform: translateZ(0);
    contain: layout style;
}
.auth-card-enhanced input[type="text"],
.auth-card-enhanced input[type="email"],
.auth-card-enhanced input[type="password"],
.auth-card-enhanced input[type="tel"],
.auth-card-enhanced select {
    transform: translateZ(0);
}