/* ============================================================
   ESTILOS DE AUTENTICAÇÃO (LOGIN / REGISTRO) - CYBERPUNK
============================================================ */

/* Reset básico para garantir alinhamento */
* {
    box-sizing: border-box;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #2a0038 0%, #0a000f 100%);
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    overflow: hidden;
}

/* Grid de fundo sutil */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(245, 197, 66, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 66, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.auth-page {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: authFadeIn 0.8s ease-out;
    display: flex; /* Garante centralização */
    justify-content: center;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-box {
    width: 100%; /* Ocupa toda a largura do container pai */
    background: rgba(20, 20, 25, 0.7);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(245, 197, 66, 0.2);
    backdrop-filter: blur(15px);
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* Brilho superior */
.auth-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--dourado), transparent);
    opacity: 0.7;
}

.auth-box h2 {
    color: #fff;
    margin-bottom: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.4);
}

/* Inputs */
.auth-box input {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--dourado);
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.auth-box input::placeholder {
    color: #666;
}

/* Botão Principal (Estilo 3D Roxo) */
.auth-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--roxo-2); /* Roxo Principal (#4a0075) */
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    /* Sombra 3D Roxa Escura */
    box-shadow: 0 6px 0 #2a0045;
}

.auth-btn:hover {
    background: #6a00a0; /* Roxo um pouco mais claro no hover */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #2a0045;
    /* Efeito de brilho roxo/neon */
    animation: pulse-glow-purple 1.5s infinite;
}

.auth-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #2a0045;
    animation: none;
}

/* Links */
.auth-link {
    margin-top: 25px;
    color: #aaa;
    font-size: 0.95rem;
}

.auth-link a {
    color: var(--dourado);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.auth-link a:hover {
    text-shadow: 0 0 8px var(--dourado);
    text-decoration: underline;
}

.auth-error {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Botão Voltar */
.back-to-home-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    z-index: 10;
    padding: 8px 15px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-home-btn:hover {
    color: var(--dourado);
    border-color: var(--dourado);
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.2);
}

/* Login Social */
.social-login {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-login p {
    color: #888;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Botão Google (Estilo 3D Vermelho) */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #c94130; /* Vermelho do Google */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.15s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%; /* Garante que ocupe a largura total */
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    
    /* Sombra 3D Vermelha Escura */
    box-shadow: 0 6px 0 #8b2d22;
}

.google-btn:hover {
    background: #e04936; /* Vermelho um pouco mais claro no hover */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #8b2d22;
    border-color: rgba(255, 255, 255, 0.3);
}

.google-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #8b2d22;
    animation: none;
}

.google-btn i {
    color: #fff; /* Ícone branco para combinar */
    font-size: 1.2rem;
}

/* Animação de pulso roxo (reutilizada do style.css se necessário, mas definida aqui para garantir) */
@keyframes pulse-glow-purple {
    0% {
        box-shadow: 0 8px 0 #2a0045, 0 0 5px rgba(138, 43, 226, 0.3);
    }
    50% {
        box-shadow: 0 8px 0 #2a0045, 0 0 20px rgba(138, 43, 226, 0.8);
    }
    100% {
        box-shadow: 0 8px 0 #2a0045, 0 0 5px rgba(138, 43, 226, 0.3);
    }
}
