/* =========================================
   1. RESET E CONFIGURAÇÕES GLOBAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* Degradê de fundo "Dark Theme" */
    background: linear-gradient(135deg, #0f1020 0%, #1a1a40 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =========================================
   2. LAYOUT E ESTRUTURA
   ========================================= */
header {
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
}

/* Nota: Certifique-se de adicionar class="container" na sua tag <main> */
.container, main { 
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* =========================================
   3. TIPOGRAFIA E LOGO
   ========================================= */
.logo {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #333;
    font-weight: 600;
}

.text-blue {
    color: #485586; /* Azul intermediário do tema */
}

/* =========================================
   4. CARDS (LOGIN)
   ========================================= */
.login-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-align: center;
}

/* =========================================
   5. FORMULÁRIOS E INPUTS
   ========================================= */
.input-group {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.input-group:focus-within {
    border-color: #485586;
    background-color: white;
    box-shadow: 0 4px 10px rgba(72, 85, 134, 0.1);
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: #485586;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.input-group input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* =========================================
   6. BOTÕES
   ========================================= */
.btn-login {
    width: 100%;
    background-color: #1a1a40; /* Azul escuro principal */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-login:hover {
    background-color: #485586;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: none;
    border: none;
    color: #666;
    font-weight: 500;
    margin-top: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-secondary:hover {
    text-decoration: none;
    color: #485586;
}

/* =========================================
   7. MENSAGENS E ALERTAS
   ========================================= */
.messages-container {
    width: 100%;
    margin-bottom: 15px;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
}

/* Cores dos alertas */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error, 
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}