/**
 * Páginas públicas: login, cadastro, recuperação e redefinição de senha.
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-public {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a1929 0%, #1a3a5a 100%);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-container,
.cadastro-container,
.auth-public-box {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-public-box .logo-section {
    margin-bottom: 1.5rem;
}

.logo-section .logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin-bottom: 0.75rem;
}

.logo-section img {
    height: 76px;
    width: 76px;
    object-fit: contain;
    transform: scale(1.42);
    transform-origin: center center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}

.auth-public-box .logo-section img {
    height: 64px;
    width: auto;
    transform: none;
}

.logo-section h1 {
    color: #0a1929;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-public-box h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.logo-section p {
    color: #666;
    font-size: 0.95rem;
}

.auth-public .lead {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.cadastro-container .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-hint {
    color: #666;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.login-container .btn {
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.auth-public-box .btn:hover {
    transform: none;
    filter: brightness(1.05);
    box-shadow: none;
}

.errorlist {
    list-style: none;
    color: #e74c3c;
    margin-bottom: 1rem;
    padding: 0.875rem;
    background-color: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.errorlist li {
    margin-bottom: 0.25rem;
}

.errorlist li:last-child {
    margin-bottom: 0;
}

.help-text {
    margin-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.cadastro-container .help-text {
    margin-top: 1.5rem;
}

.help-text a {
    color: #00b4d8;
    text-decoration: none;
    font-weight: 500;
}

.help-text a:hover {
    text-decoration: underline;
}

.help-text--meta {
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.auth-forgot {
    text-align: right;
    margin-bottom: 0.5rem;
}

.auth-forgot a {
    color: #0077b6;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.messages {
    margin-bottom: 1rem;
}

.message {
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.legal-checks {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #334155;
    cursor: pointer;
    margin-bottom: 0.85rem;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #0077b6;
    font-weight: 600;
}
