/* ============================================ */
/* V4 AUTHENTICATION SYSTEM STYLES */
/* ============================================ */

/* Authentication Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

.auth-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-deep), var(--glow-gold);
    animation: modalSlideIn 0.3s ease-out;
}

.auth-modal-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-title {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin: 0;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 1),
        0 0 20px rgba(255, 215, 0, 0.9),
        0 0 30px rgba(255, 215, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 1)) 
            drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    position: relative;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-title::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 10px;
    z-index: -1;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { opacity: 0.5; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.02); }
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.4);
    color: #ff6b6b;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.2);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.auth-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--text-secondary);
}

.auth-tab.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

.tab-icon {
    font-size: 1.1rem;
}

.auth-content {
    padding: 2rem;
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    background: var(--bg-tertiary);
}

.auth-submit {
    width: 100%;
    padding: 0.9rem;
    background: var(--gradient-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 215, 0, 0.2);
    z-index: 1;
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    gap: 0.8rem;
}

.social-btn {
    flex: 1;
    padding: 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.social-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--gold-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.google-login-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.3);
}

.facebook-login-btn:hover {
    border-color: #1877f2;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.3);
}

.social-icon {
    font-size: 1.1rem;
}

.auth-footer {
    padding: 1rem 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================ */
/* FOOTER SECTION - Made by GFB */
/* ============================================ */

/* Footer styling moved to styles_dark_premium.css to avoid conflicts */

/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .auth-content {
        padding: 1.5rem;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .gfb-footer {
        position: relative;
        margin-top: 2rem;
    }
}
