/* auth_style.css - Estilos baseados no Tema Geral do Quiz */

:root {
    /* Tema Padrão/Geral (Espacial) */
    --body-bg: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --container-bg: rgba(10, 25, 47, 0.85);
    --container-border: #7DF9FF;
    --text-color: #e0e0e0;
    --title-color: #7DF9FF;
    --title-shadow: #7DF9FF;
    --subtitle-color: #bdc1c6;
    --button-bg: linear-gradient(145deg, #007bff, #0056b3);
    --button-hover-bg: linear-gradient(145deg, #0056b3, #003d80);
    --button-shadow: rgba(0, 123, 255, 0.4);
    --font-main: 'Roboto', sans-serif;
    --font-title: 'Orbitron', sans-serif;
}

body {
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: var(--body-bg);
    color: var(--text-color);
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

.container {
    background-color: var(--container-bg);
    padding: 25px 40px;
    border-radius: 20px; /* Mais arredondado como no jogo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    max-width: 100%;
    border: 2px solid var(--container-border);
    backdrop-filter: blur(5px);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

h1, h2 {
    font-family: var(--font-title);
    color: var(--title-color);
    text-shadow: 0 0 10px var(--title-shadow), 0 0 20px var(--title-shadow);
    margin-bottom: 10px;
    transition: color 0.5s ease, text-shadow 0.5s ease;
}
h1 { font-size: 2.8em; }
h2 { font-size: 1.8em; margin-bottom: 20px; }

.subtitle {
    font-size: 1.1em;
    color: var(--subtitle-color);
    margin-bottom: 30px;
    transition: color 0.5s ease;
}

/* Estilos de input e select */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color); /* Ajustado para a cor do tema */
    
}
.form-group input,
.form-group select {
    width: 50%;
    padding: 0.75rem;
    border: 1px solid var(--container-border); /* Borda baseada no tema */
    background-color: rgba(255, 255, 255, 0.1); /* Fundo translúcido */
    color: var(--text-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, background-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--title-color); /* Cor de foco baseada no tema */
    box-shadow: 0 0 0 3px rgba(125, 249, 255, 0.5); /* Sombra de foco baseada no tema */
}

/* Estilo para botões primários (Login/Cadastrar) */
.btn-primary {
    font-family: var(--font-title); /* Fonte do título para botões */
    background: var(--button-bg);
    color: white;
    border: none;
    padding: 10px 25px;
    margin-top: 20px; /* Espaçamento acima do botão */
    border-radius: 50px; /* Botão mais arredondado */
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--button-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 50%; /* Ocupa a largura total */
}
.btn-primary:hover {
    background: var(--button-hover-bg);
    transform: translateY(-3px) scale(1.02);
}
.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Estilo para o link "Já tem uma conta?" / "Não tem uma conta?" */
.link-secondary {
    color: var(--title-color); /* Cor do tema para o link */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.link-secondary:hover {
    text-decoration: underline;
    color: var(--subtitle-color); /* Cor um pouco mais clara no hover */
}

/* Caixa de Mensagens */
.message-box {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem; /* Mais espaçamento para a mensagem */
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
}
.message-box.show {
    display: block;
    animation: fadeInMessage 0.5s ease-out;
}
@keyframes fadeInMessage {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Cores para mensagens de sucesso/erro/aviso (Tailwind classes em JS) */
.bg-green-200 { background-color: rgba(186, 230, 194, 0.8); }
.text-green-800 { color: #166534; }
.bg-red-200 { background-color: rgba(254, 202, 202, 0.8); }
.text-red-800 { color: #991b1b; }
.bg-yellow-200 { background-color: rgba(253, 230, 138, 0.8); }
.text-yellow-800 { color: #b45309; }

/* Responsividade básica para formulários */
@media (max-width: 600px) {
    .container {
        padding: 20px 25px;
        border-radius: 15px;
    }
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.5em; }
    .btn-primary {
        font-size: 1em;
        padding: 10px 20px;
    }
    .form-group input,.form-group select {
    width: 100%;
    }
    .btn-primary {
        width: 100%;
    }
}
