:root {
    --cor-primaria: #6a5acd;
    --cor-secundaria: #f4f6f9;
    --cor-texto-principal: #2c3e50;
    --cor-texto-secundario: #576574;
    --cor-erro: #e74c3c;
    --cor-sucesso: #2ecc71;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--cor-secundaria);
    font-family: 'Poppins', sans-serif;
    margin: 20px;
    box-sizing: border-box;
}

main {
    max-width: 450px;
    width: 100%;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.logo-login a {
    font-size: 2em;
    font-weight: 700;
    color: var(--cor-primaria);
    text-decoration: none;
    margin-bottom: 10px;
    display: inline-block;
}

h2 {
    font-size: 1.5em;
    color: var(--cor-texto-principal);
    margin-top: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--cor-primaria);
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #5a4dab;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#error-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
    display: none; /* Começa escondido */
}
#error-message.error {
    display: block;
    color: var(--cor-erro);
    background-color: #fbe9e7;
}
#error-message.info {
    display: block;
    text-align: center;
    color: #31708f;
    background-color: #e7f3fe;
    border: 1px solid #d0e8fc;
}
#error-message .button {
    margin-top: 15px;
}

.registro-link {
    margin-top: 25px;
    font-size: 0.9em;
}
.registro-link a {
    color: var(--cor-primaria);
    font-weight: 600;
    text-decoration: none;
}
a.button {
    text-decoration: none;
    color: white !important; /* O !important ajuda a sobrepor a cor azul padrão dos links */
}