* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 1. CONTAINER GERAR (Agrupa a Logo + Card) */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    gap: 20px; /* Espaço entre a logo e o card branco */
}

/* 2. LOGO FORA DO CARD */
.brand {
    text-align: center;
    width: 100%;
}

.login-logo {
    max-width: 270px; /* Tamanho proporcional para ficar acima do card */
    width: 100%;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); /* Sombra leve para destacar a logo no fundo azul */
}

.brand h2 {
    color: #ffffff; /* Texto claro para dar contraste no fundo azul */
    font-size: 26px;
    font-weight: 700;
}

.brand p {
    color: #e2e8f0;
    font-size: 14px;
    margin-top: 5px;
}

/* 3. CARD BRANCO DE LOGIN */
.login-container {
    background: #ffffff;
    width: 100%;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* 4. MENSAGENS E FORMULÁRIOS */
.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #fca5a5;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

.action-btn {
    width: 100%;
    padding: 12px;
    background-color: #1e3c72;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 15px;
}

.action-btn:hover {
    background-color: #2a5298;
}

/* Botão de Cadastro */
.register-btn {
    display: block;
    width: 100%;
    padding: 11px;
    background-color: transparent;
    color: #1e3c72;
    border: 2px solid #1e3c72;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.register-btn:hover {
    background-color: #1e3c72;
    color: #ffffff;
}

.footer-links {
    text-align: center;
    margin-top: 25px;
}

.footer-links a {
    color: #1e3c72;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    text-decoration: underline;
}