:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1b2638;
    background: #f3f7fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-shell { width: min(100%, 440px); display: grid; justify-items: center; gap: 18px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: #102a43; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.auth-brand img { width: 42px; height: 42px; object-fit: contain; }
.auth-card { width: 100%; background: #fff; border: 1px solid #dce6f0; border-radius: 16px; padding: 32px; box-shadow: 0 18px 50px rgba(23, 53, 83, .1); }
.auth-card h1 { margin: 0 0 8px; font-size: 1.8rem; }
.auth-lead { margin: 0 0 24px; color: #61758a; line-height: 1.5; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { font-weight: 700; font-size: .92rem; margin-top: 7px; }
.auth-form input, .auth-form select { width: 100%; border: 1px solid #c7d5e3; border-radius: 8px; padding: 12px 13px; font: inherit; color: inherit; background: #fff; }
.auth-form input:focus, .auth-form select:focus { outline: 3px solid rgba(36, 128, 170, .2); border-color: #2480aa; }
.checkbox-label { display: flex; gap: 8px; align-items: center; font-weight: 500 !important; }
.checkbox-label input { width: auto; }
.auth-button, .auth-secondary-button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 8px; padding: 12px 16px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.auth-button { margin-top: 12px; color: #fff; background: #176b87; }
.auth-button:hover { background: #12556c; }
.button-link { width: 100%; }
.auth-secondary-link, .auth-home-link { color: #176b87; font-size: .92rem; text-decoration: none; }
.auth-secondary-link { display: block; text-align: center; margin-top: 20px; }
.auth-home-link { color: #61758a; }
.auth-alert { border-radius: 8px; padding: 11px 13px; margin-bottom: 18px; font-size: .92rem; line-height: 1.4; }
.auth-alert.success { background: #e5f6ed; color: #146c43; }
.auth-alert.error { background: #fff0f0; color: #a52b2b; }
.user-summary { display: grid; gap: 4px; padding: 16px; margin-bottom: 18px; background: #f3f7fb; border-radius: 10px; }
.user-summary span { color: #61758a; font-size: .85rem; }
.logout-form { margin-top: 12px; }
.auth-secondary-button { width: 100%; color: #34495e; background: #e7eef5; }

/* Refresh visual compartilhado das páginas de acesso e painel. */
:root {
    color: #1d2939;
    background: #f8fafc;
}
.auth-page {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #eff5ff 0, #f8fafc 52%);
}
.auth-page::before, .auth-page::after {
    position: fixed;
    z-index: 0;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(40, 86, 164, .1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.auth-page::before { top: -150px; left: -110px; }
.auth-page::after { right: -150px; bottom: -125px; border-color: rgba(250, 121, 43, .18); }
.auth-shell { position: relative; z-index: 1; }
.auth-brand { color: #183b73; letter-spacing: -.02em; }
.auth-brand img { width: 48px; height: 48px; }
.auth-card {
    border-color: #e4e7ec;
    border-radius: 12px;
    padding: 34px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .07);
}
.auth-card h1 { color: #1d2939; font-size: 1.7rem; letter-spacing: -.035em; }
.auth-lead { color: #667085; }
.auth-form label { color: #344054; }
.auth-form input, .auth-form select { border-color: #d0d5dd; border-radius: 8px; transition: border-color .16s ease, box-shadow .16s ease; }
.auth-form input:focus, .auth-form select:focus { border-color: #2856a4; outline: 0; box-shadow: 0 0 0 3px rgba(40, 86, 164, .12); }
.auth-button { border-radius: 8px; background: #2856a4; transition: background-color .16s ease, transform .16s ease; }
.auth-button:hover { background: #183b73; transform: translateY(-1px); }
.auth-secondary-link { color: #2856a4; }
.auth-alert { border: 1px solid transparent; border-radius: 8px; }
.auth-alert.success { border-color: #abefc6; background: #ecfdf3; color: #027a48; }
.auth-alert.error { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.user-summary { border: 1px solid #e4e7ec; border-radius: 9px; background: #f8fafc; }
.auth-secondary-button { border: 1px solid #e4e7ec; border-radius: 8px; background: #f2f4f7; transition: border-color .16s ease, background-color .16s ease; }
.auth-secondary-button:hover { border-color: #d0d5dd; background: #eaecf0; }
.auth-home-link { position: relative; z-index: 1; }
@media (max-width: 480px) {
    .auth-card { padding: 26px 22px; }
}
