/* --- Estilos para a página de Login --- */
:root {
    --primary-color: #4CAF50; /* A slightly softer green */
    --primary-hover-color: #45a049;
    --secondary-color: #f0f2f5; /* Light gray background */
    --accent-color: #007bff; /* A blue for links/highlights */
    --white: #ffffff;
    --light-gray: #e0e0e0;
    --medium-gray: #bdbdbd;
    --dark-gray: #333333;
    --text-color: var(--dark-gray);
    --heading-color: var(--dark-gray);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Softer, larger shadow */
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    background-color: var(--secondary-color); /* Ensure body also uses secondary-color for consistency */
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--secondary-color); /* Keeps the background consistent */
    padding: 20px; /* Add some padding for smaller screens */
    box-sizing: border-box;
}

.login-box {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px; /* Slightly wider */
    text-align: center;
    border: 1px solid var(--light-gray); /* Subtle border */
}

.login-box h2 {
    color: var(--heading-color);
    margin-bottom: 1.8rem; /* Increased margin */
    font-size: 2.2rem; /* Slightly larger */
    font-weight: 700;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.6rem; /* Slightly larger margin */
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.input-group input {
    width: calc(100% - 1.6rem); /* Adjust width for padding */
    padding: 0.9rem; /* Increased padding */
    border: 1px solid var(--medium-gray); /* More distinct border */
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--white); /* White background for input */
    color: var(--dark-gray);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); /* Focus ring */
}

.login-button {
    width: 100%;
    padding: 1rem; /* Increased padding */
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    font-size: 1.15rem; /* Slightly larger */
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    margin-top: 1rem; /* Add some space above button */
}

.login-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px); /* Subtle lift effect */
}

.error-message {
    color: #dc3545; /* Red for errors */
    font-size: 0.9rem;
    margin-top: -1rem; /* Adjust margin to pull it up slightly */
    margin-bottom: 1rem;
    text-align: left;
}

.register-link {
    margin-top: 1.8rem; /* Increased margin */
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.register-link a {
    color: var(--accent-color); /* Use accent color for links */
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.register-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* reCAPTCHA specific adjustments */
.g-recaptcha {
    margin: 1.5rem auto; /* Center reCAPTCHA */
    transform: scale(0.95); /* Slightly scale down reCAPTCHA if it's too big */
    transform-origin: 0 0; /* Adjust origin for scaling */
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem;
        margin: 10px;
    }
    .login-box h2 {
        font-size: 1.8rem;
    }
}