/* static/css/login.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background: #ffffff;
    /* Removido o padding daqui para o azul colar nas bordas */
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    overflow: hidden; /* Corta os cantos quadrados do topo azul para ficarem arredondados */
}

/* --- NOVO: CABEÇALHO AZUL COM A LOGO --- */
.card-header-blue {
    background-color: #2563eb; /* Azul corporativo da marca */
    padding: 36px 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-img { 
    max-width: 100px; /* Tamanho ajustado da logo */
    height: auto; 
    margin-bottom: 12px;
    /* Dica de Ouro: Esse filtro força a logo a ficar totalmente BRANCA, 
       garantindo que qualquer logo fique perfeita no fundo azul */
    filter: brightness(0) invert(1); 
}

.title { 
    margin: 0; 
    font-size: 26px; 
    font-weight: 700; 
    color: #ffffff; /* Texto branco */
    letter-spacing: 0.5px;
}

/* --- CORPO DO FORMULÁRIO BRANCO --- */
.card-body {
    padding: 36px 40px;
}

/* Estilos dos Inputs */
.input-group { margin-bottom: 20px; text-align: left; }
.input-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.input-wrapper { position: relative; }
.input-wrapper .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; }
.input-wrapper input { 
    width: 100%; box-sizing: border-box; padding: 12px 12px 12px 40px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 14px; color: #334155; transition: all 0.3s ease; 
}
.input-wrapper input:focus { outline: none; background: #ffffff; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* Estilos das Opções (Lembrar/Esqueci) */
.options-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.remember-container { display: flex; align-items: center; gap: 8px; }
.remember-container input { margin: 0; width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; border-radius: 4px; }
.remember-container label { font-size: 13px; color: #64748b; cursor: pointer; font-weight: 500;}
.forgot-link { font-size: 13px; color: #2563eb; text-decoration: none; font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }

/* Estilos do Botão */
.login-button { 
    width: 100%; padding: 14px; background-color: #2563eb; color: white;
    border: none; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 15px;
    font-weight: 600; cursor: pointer; display: flex; justify-content: center;
    align-items: center; gap: 10px; transition: all 0.3s ease; 
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}
.login-button:hover { background-color: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3); }
.login-button:disabled { background-color: #94a3b8; cursor: not-allowed; box-shadow: none; transform: none; }

/* Estilos da Mensagem de Erro e Rodapé */
.error-message { color: #ef4444; font-size: 13px; font-weight: 500; margin-top: 16px; text-align: center; }
.card-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid #f1f5f9; text-align: center; font-size: 12px; color: #94a3b8; }

/* Responsivo */
@media (max-width: 480px) {
    .card-body { padding: 32px 24px; }
    .options-group { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* --- ESTILOS PARA ETAPA 2 DE LOGIN (ADMIN) --- */
.form-select {
    width: 100%; box-sizing: border-box; padding: 12px 12px 12px 40px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 14px; color: #334155; 
    transition: all 0.3s ease; 
    appearance: none; /* Remove seta padrão em alguns navegadores */
    cursor: pointer;
}

.form-select:focus { 
    outline: none; background: #ffffff; border-color: #2563eb; 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
}

.back-link {
    display: block; width: 100%; text-align: center; margin-top: 20px;
    background: none; border: none; color: #64748b; font-size: 13px;
    cursor: pointer; font-weight: 500; transition: color 0.2s;
}

.back-link:hover { 
    color: #334155; text-decoration: underline; 
}