:root {
    --verde-principal: #127369;
    --verde-escuro: #10403B;
    --cinza-esverdeado: #8AA6A3;
    --cinza-esverdeado-escuro: #4C5958;
    --cinza-claro: #BFBFBF;
    --laranja: #A14707;
}

/* Reset e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at center, var(--verde-principal), var(--verde-escuro));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Layout */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    border: 5px solid #fff;
    border-radius: 50%;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}


/* Formulário */
.input-group {
    margin-bottom: 15px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}


.login-form button {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    background-color: var(--laranja);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.login-form button:hover {
    background-color: #8A2E07;
}

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

/* Estilos de Erro */
.input-group input.invalid {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 14px;
    display: none;
}

.input-group input.invalid+.error-message {
    display: block;
}

/* Mensagens de Login */
.login-message {
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.login-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.login-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Recuperar Senha */
.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--laranja);
  animation: spin 1s ease-in-out infinite;
  margin: 10px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Criar Conta */
.create-account {
    text-align: center;
    margin-top: 15px;
}

.create-account a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.create-account a:hover {
    text-decoration: underline;
}


/* Responsividade */
@media (max-width: 600px) {
    .login-form button {
        max-width: 100%;
    }
}