* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #567eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Evita que o card encoste nas bordas em celulares */
}

.login-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

h2 {
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s;
}

/* Corrigido: era .input-roup */
.input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
}

#toggle-password:hover {
    opacity: 1;
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background-color: #5a6fd6;
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

#message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.hidden { display: none !important; }

/* Cores vibrantes para as mensagens */
.error { background-color: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.success { background-color: #dcfce7; color: #16a34a; border: 1px solid #bbf7d8; }

.footer-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    display: block;
    margin-top: 0.5rem;
    color: #777;
}

/* Estilo do Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite; /* Animação mais rápida e fluida */
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estado de desabilitado para o botão */
.btn-login:disabled {
    background-color: #a5b4fc;
    cursor: not-allowed;
    transform: none;
}