/* Estilo para Páginas de Autenticação (Login e Registro) */

:root {
    --primary-color: #00833D;
    --primary-dark-color: #00642e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.auth-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    color: var(--primary-dark-color);
    margin-top: 0;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    border-color: #00b359;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 131, 61, 0.25);
}

.btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: var(--primary-color);
    color: white;
    margin-top: 10px;
}

.btn:hover {
    background-color: var(--primary-dark-color);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}
@media (max-width: 767px) {
/* Formulário acessível em telas pequenas e com teclado aberto. */
*, *::before, *::after { box-sizing: border-box; }
body { height: auto; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; }
.auth-container { flex: 0 1 400px; min-width: 0; margin: auto; padding: 32px; }
input, select, button { font-family: inherit; font-size: 16px; }
input[type="text"], input[type="password"], input[type="email"], input[type="date"], select {
    min-height: 48px; width: 100%; max-width: 100%; padding: 12px;
    border: 1px solid #ced4da; border-radius: 6px;
}
.password-wrapper input { padding-right: 54px; }
.password-wrapper .toggle-password {
    display: flex; align-items: center; justify-content: center;
    right: 2px; top: 2px; width: 44px; height: 44px; padding: 0;
    background: transparent; border: 0; border-radius: 4px;
}
.btn { min-height: 48px; }
.auth-recovery { display: flex; justify-content: flex-end; margin-top: 4px; }
.auth-recovery a { min-height: 44px; display: inline-flex; align-items: center; color: #00642e !important; font-size: 14px; text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid #0284c7; outline-offset: 2px; }
@media (max-width: 480px) {
    .auth-container { padding: 28px 22px; }
    h2 { font-size: 24px; margin-bottom: 24px; }
}
@media (max-height: 540px) { body { align-items: flex-start; padding-block: 12px; } }

}
