/* ========== AUTHENTICATION SCREEN ========== */

.auth-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.auth-container {
    background: rgba(26, 26, 46, 0.95);
    border: 2px solid rgba(255, 70, 85, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 70, 85, 0.2);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff4655 0%, #ff7070 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-form {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-form h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #ff4655;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: linear-gradient(135deg, #ff4655 0%, #ff7070 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 70, 85, 0.6);
    background: linear-gradient(135deg, #ff5565 0%, #ff8080 100%);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 70, 85, 0.1);
    border: 1px solid rgba(255, 70, 85, 0.3);
    border-radius: 8px;
    color: #ff4655;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.auth-switch a {
    color: #ff4655;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #ff7070;
    text-decoration: underline;
}

/* ========== USER INFO IN MENU ========== */

.user-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.user-welcome {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

#userDisplayName {
    color: #ff4655;
    font-weight: 700;
}

.logout-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 14px;
    min-width: auto;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #7688f0 0%, #8655b2 100%);
}

/* ========== DONATION BUTTON - Design Elegante ========== */

.donation-btn {
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    background-size: 200% 200%;
    color: #000 !important;
    font-weight: 900;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 215, 0, 0.5);
    animation: donationPulse 3s ease-in-out infinite, gradientShift 4s ease infinite;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Gradiente animado */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Aura brilhante atrás do botão de doação */
.donation-btn::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(45deg, 
        #FFD700 0%, 
        #FFA500 25%, 
        #FFD700 50%, 
        #FFA500 75%, 
        #FFD700 100%);
    background-size: 400% 400%;
    border-radius: 10px;
    z-index: -1;
    opacity: 0.7;
    filter: blur(20px);
    animation: rotateDonationAura 6s linear infinite, gradientShift 3s ease infinite;
}

/* Brilho interno */
.donation-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 100%);
    border-radius: 8px;
    pointer-events: none;
}

/* Rotação da aura de doação */
@keyframes rotateDonationAura {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    33% {
        transform: rotate(120deg) scale(1.05);
        opacity: 0.85;
    }
    66% {
        transform: rotate(240deg) scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.7;
    }
}

/* Pulsação do botão de doação */
@keyframes donationPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 25px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
}

.donation-btn:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 8px 30px rgba(255, 215, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    color: #000 !important;
    animation: donationPulse 1.5s ease-in-out infinite, gradientShift 2s ease infinite;
}

.donation-btn:hover::before {
    animation: rotateDonationAura 3s linear infinite, gradientShift 2s ease infinite;
    opacity: 1;
    filter: blur(25px);
}

.donation-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.donation-container {
    text-align: center;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 600px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-form h2 {
        font-size: 20px;
    }
    
    .user-info-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logout-btn {
        width: 100%;
    }
    
    .donation-btn {
        width: 100%;
        max-width: 300px;
    }
}
