/* static/core/css/auth_pages.css */

/* Garante que o fundo cubra toda a tela */
html, body {
    height: 100%;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Fundo animado que será adicionado ao base_fullscreen */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(115, 25, 25, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(166, 46, 46, 0.1) 0%, transparent 40%);
}

#particles-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Estilo do Card de Autenticação com Animação de Borda COMPLETA */
.auth-card {
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

/* Estilo do Card de Autenticação com Animação de Borda COMPLETA */
.auth-card {
    background: transparent; /* O fundo agora é transparente para a mágica acontecer */
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

/* Pseudo-elemento que cria o gradiente giratório */
.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(220, 38, 38, 0.8),
        transparent 30%
    );
    animation: border-rotate 6s linear infinite;
    z-index: 1; /* Camada do meio */
}

/* ✅ CORREÇÃO CRÍTICA: O conteúdo interno precisa ter um fundo opaco e um z-index maior */
.auth-card-content {
    position: relative;
    z-index: 2; /* Fica na frente do gradiente */
    background: #141414; /* Cor de fundo que imita o glassmorphism e esconde o gradiente no centro */
    border-radius: calc(1.5rem - 2px); /* Raio um pouco menor para a borda aparecer */
    overflow: hidden;
}


@keyframes border-rotate {
    100% {
        transform: rotate(360deg);
    }
}

.auth-card .form-control {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0.5rem;
}

.auth-card .form-control:focus {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-accent), #ef4444);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.auth-image-section {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.8), rgba(26, 26, 26, 0.9)), url("{% static 'core/images/hero-background.png' %}");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}