/* ==========================================================================
   ARCADE RELICS - CONNEXION MODAL OVERLAY STYLES
   ========================================================================== */

/* Login Modal Overlay with Semi-blurred Site Background */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 6, 13, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.35s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.login-modal-overlay .login-card-wrapper {
    width: 100%;
    max-width: 460px;
    position: relative;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modal-overlay.active .login-card-wrapper {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Glowing Aura Behind Card */
.card-ambient-aura {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 50% 30%, rgba(38, 230, 255, 0.25), rgba(255, 45, 164, 0.2) 60%, transparent 80%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    border-radius: 40px;
}

/* Glassmorphism Card */
.login-card {
    background: rgba(16, 16, 32, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 46px 36px 42px 36px;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
}

/* Close Button on Modal Card */
.login-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.login-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: var(--border-light);
    transform: rotate(90deg);
}

body.modal-open {
    overflow: hidden !important;
}

/* Card Header */
.login-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Google Login Button */
.google-login-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #ffffff !important;
    color: #1f1f1f !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.google-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.4), 0 0 22px rgba(66, 133, 244, 0.4);
    background: #ffffff !important;
    color: #1f1f1f !important;
}

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

.google-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-icon {
    width: 22px;
    height: 22px;
}

@media (max-width: 520px) {
    .login-card {
        padding: 38px 22px 32px 22px;
    }

    .login-title {
        font-size: 1.55rem;
    }

    .login-subtitle {
        font-size: 0.88rem;
    }
}
