/**
 * Gamevers Auth Success Overlay Styles
 * Location: Pages/Registration Page/css/gv-auth-overlay.css
 */

.gv-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gv-overlay-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gv-auth-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Deep dark background, no blur as requested */
}

.gv-auth-overlay-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 40em;
    /* max-width: 500px; */
    height: auto;
    min-height: 30em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3em 2.5em;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px; /* Rounder container as requested */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.gv-auth-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gv-auth-progress-fill {
    height: 100%;
    width: 0%;
    background: #0072ff;
    transition: width 1.5s linear;
}

.gv-step-hidden {
    display: none !important;
}

/* Center Logo State with Mask Gradient Animation */
.gv-auth-center-logo {
    margin-bottom: auto;
    margin-top: auto;
    width: 200px; /* Increased to accommodate larger animations */
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gv-auth-step1-lottie-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.gv-auth-logo-mask {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;

    /* Vertical Gradient Background - Seamless Loop Pattern */
    background: linear-gradient(to bottom,
        #22d3ee, #a64dff, #ff37a0,
        #22d3ee, #a64dff, #ff37a0);
    background-size: 100% 320%;
    
    /* Logo Mask Logic from Transition System */
    -webkit-mask-image: url('https://gamevers.store/wp-content/uploads/2026/03/Gamevers-G-logo.svg');
    mask-image: url('https://gamevers.store/wp-content/uploads/2026/03/Gamevers-G-logo.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    
    /* Animation - Vertical Yo-Yo movement (Up and Down) */
    animation: gvAuthLogoGradient 1.5s ease-in-out infinite alternate;
}

.gv-auth-logo-anim {
    width: 100%;
    height: 100%;
    opacity: 0; /* Hide original img, mask handles visuals */
}

@keyframes gvAuthLogoGradient {
    0% {
        background-position: 0% 0%;
        transform: scale(1);
    }
    100% {
        background-position: 0% 100%;
        transform: scale(1.05);
    }
}

.gv-auth-bottom-text {
    margin-top: 40px;
}

#gv-auth-loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Success State */
.gv-auth-lottie-container {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.gv-auth-overlay-text h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.gv-auth-overlay-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Loader Bar */
.gv-auth-overlay-loader {
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
}

.gv-auth-redirect-hint {
    margin-top: 15px;
    height: 20px;
}

#gv-auth-redirect-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
    animation: gv-fade-in 0.5s ease forwards;
}

@keyframes gv-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.gv-auth-progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.gv-auth-progress-fill {
    height: 100%;
    width: 0%;
    background: #0072ff;
    transition: width 0.8s linear;
}

.gv-auth-state-login .gv-auth-progress-fill { background: #00c6ff; }
.gv-auth-state-create .gv-auth-progress-fill { background: #00f260; }
.gv-auth-state-merge .gv-auth-progress-fill { background: #f5576c; }
.gv-auth-state-full_merge .gv-auth-progress-fill { background: #f5576c; }
.gv-auth-state-recovery .gv-auth-progress-fill { background: #f5576c; }
.gv-auth-state-unlink .gv-auth-progress-fill { background: #4facfe; }
.gv-auth-state-merge_error .gv-auth-progress-fill { background: #ff4444; }
.gv-auth-state-merge_warning .gv-auth-progress-fill { background: #f5a623; }

/* State-Specific Sizing for Step 1 Animations */
/* Login State (Logo) */
.gv-auth-state-login .gv-auth-logo-mask {
    width: 8em;
    height: 8em;
}

/* Create State (Lottie) */
.gv-auth-state-create #gv-auth-step1-lottie {
    width: 10em;
    height: 10em;
    transform: scale(1.5);
}

/* Merge State (Lottie) */
.gv-auth-state-merge #gv-auth-step1-lottie,
.gv-auth-state-full_merge #gv-auth-step1-lottie,
.gv-auth-state-unlink #gv-auth-step1-lottie {
    width: 12em;
    height: 12em;
    transform: scale(1.6);
}

/* Step 2 Common Sizing */
#gv-auth-success-lottie {
    width: 8em;
    height: 8em;
    transform: scale(1.15);
}

.gv-auth-state-merge_error .gv-auth-overlay-loader,
.gv-auth-state-merge_warning .gv-auth-overlay-loader {
    display: none !important;
}

#gv-auth-overlay-close-btn {
    margin-top: 24px;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    outline: none;
}
#gv-auth-overlay-close-btn:hover {
    opacity: 0.85;
    transform: scale(1.03);
}
.gv-auth-state-merge_warning #gv-auth-overlay-close-btn {
    background: #f5a623;
    color: #000;
}
.gv-auth-state-merge_error #gv-auth-overlay-close-btn {
    background: #ff4444;
    color: #fff;
}

#gv-auth-overlay-agree-btn {
    margin-top: 24px;
    margin-right: 10px;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: #f5a623;
    color: #000;
}
#gv-auth-overlay-cancel-btn {
    margin-top: 24px;
    padding: 12px 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: transparent;
    color: #fff;
}
#gv-auth-overlay-agree-btn:hover,
#gv-auth-overlay-cancel-btn:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* Pause all infinite animations when tab is inactive */
body.gv-animations-paused .gv-dot {
    animation-play-state: paused !important;
}
body.gv-animations-paused .gv-auth-logo-mask {
    animation-play-state: paused !important;
}
body.gv-animations-paused .gv-panel-bg-lottie {
    visibility: hidden; /* Lottie handled via JS, this is a CSS fallback */
}
