/* Dalu Core — telas de acesso. CSS local, sem dependência do build Vite. */
:root {
    color-scheme: light;
    font-family: 'Segoe UI', Inter, Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body.access-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: #172944;
    background: #ecf1f7;
}

.access-page a { color: #1559a5; }
.access-page a:hover { color: #0b3976; }
.access-page :focus-visible { outline: 3px solid #55abf1; outline-offset: 3px; }

.skip-link {
    position: absolute;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 11px 16px;
    transform: translateY(-160%);
    border-radius: 8px;
    background: #fff;
}
.skip-link:focus { transform: translateY(0); }

.access-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(400px, 1.08fr);
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 1600px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 75px rgba(13, 39, 70, 0.08);
}

.access-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(28px, 4.4vw, 70px);
    color: #fff;
    background: radial-gradient(ellipse at 95% 5%, #265681 0%, transparent 43%),
        linear-gradient(155deg, #132e52 0%, #102443 61%, #0c1e36 100%);
}

.access-brand::after {
    content: '';
    position: absolute;
    right: -140px;
    bottom: 8%;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(178, 214, 244, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(178, 214, 244, 0.035),
        0 0 0 135px rgba(178, 214, 244, 0.025);
    pointer-events: none;
}

.brand-top, .brand-message, .brand-bottom { position: relative; z-index: 1; }
.brand-top { display: flex; align-items: center; gap: 13px; }
.brand-symbol {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.09em;
    padding-right: 3px;
}
.brand-company { font-size: 14px; letter-spacing: 0.16em; white-space: nowrap; }
.brand-company strong { font-weight: 700; }
.brand-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.19em; color: #a9d4f5; }
.brand-title { max-width: 450px; margin: 24px 0; font-size: clamp(42px, 4.4vw, 68px); font-weight: 750; line-height: 1.08; letter-spacing: -0.055em; }
.brand-title span { color: #83c7f3; }
.brand-description { max-width: 390px; margin: 0; color: #d2dfec; font-size: 16px; line-height: 1.8; }
.brand-rule { display: block; width: 52px; height: 3px; margin-top: 34px; border-radius: 2px; background: #7bc8f6; }
.brand-bottom { margin: 0; color: #acbfd3; font-size: 10px; font-weight: 650; letter-spacing: 0.15em; }
.brand-bottom span { margin: 0 9px; color: #6394ba; }

.access-workspace {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 52px clamp(24px, 5vw, 82px) 28px;
}
.access-card { width: 100%; max-width: 430px; margin: auto 0; }
.access-kicker { display: block; margin-bottom: 14px; color: #256ba6; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }
.access-heading h1 { margin: 0 0 14px; color: #142846; font-size: clamp(27px, 3vw, 36px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.16; }
.access-heading p { margin: 0 0 29px; color: #58677b; line-height: 1.65; font-size: 15px; }
.access-heading--login { margin-bottom: 29px; }
.access-heading--login h1 { margin-bottom: 0; }
.access-form { display: grid; gap: 21px; }
.form-field label { display: block; margin-bottom: 8px; color: #23364f; font-size: 13px; font-weight: 700; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.field-link { font-size: 12px; font-weight: 650; text-decoration: none; }
.field-link:hover, .text-link:hover { text-decoration: underline; }
.access-page input:not([type='hidden']), .access-page select {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #bac8da;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #142846;
    font: inherit;
    font-size: 15px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.access-page input::placeholder { color: #8190a2; }
.access-page input:focus, .access-page select:focus { border-color: #277ac0; box-shadow: 0 0 0 3px rgba(39, 122, 192, 0.13); }
.access-page input[aria-invalid='true'], .access-page select[aria-invalid='true'] { border-color: #be4050; }
.field-error { margin: 7px 0 0; color: #aa2d3d; font-size: 13px; line-height: 1.45; }
.field-hint { margin: 9px 0 0; color: #607187; font-size: 12px; line-height: 1.6; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.button--primary { width: 100%; border: 1px solid #155ba5; background: #155ba5; color: #fff; }
.button--primary:hover { background: #104981; border-color: #104981; }
.button--secondary { border: 1px solid #b6c9de; background: #fff; color: #244263; }
.button--secondary:hover { background: #f0f5fa; }
.notice { padding: 13px 15px; border-radius: 9px; font-size: 13px; line-height: 1.6; }
.notice--success { border: 1px solid #b3dccb; background: #ecf8f2; color: #18543d; }
.notice--error { border: 1px solid #e8bbc1; background: #fef1f2; color: #982c3c; }
.notice--neutral { border: 1px solid #cad8e8; background: #f0f5fa; color: #334c68; }
.access-actions { margin: 24px 0 0; font-size: 13px; }
.text-link { font-size: 13px; font-weight: 700; text-decoration: none; }
.access-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.access-secondary-actions form { margin: 0; }
.access-footer { margin: 32px 0 0; color: #7d8b9b; font-size: 11px; text-align: center; }
.access-footer span { padding: 0 5px; }

/* Dados do usuário: leitura apenas, sem formulário de alteração de e-mail. */
.account-summary { display: grid; gap: 12px; margin: 0 0 28px; }
.account-summary > div { min-width: 0; padding: 13px 15px; border: 1px solid #dae5f0; border-radius: 9px; background: #f7fafd; }
.account-summary dt { margin-bottom: 5px; color: #536780; font-size: 12px; font-weight: 700; }
.account-summary dd { margin: 0; color: #182e4c; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.account-section-heading { margin: 28px 0 22px; }
.account-section-heading h2 { margin: 0 0 9px; font-size: 21px; color: #142846; }
.account-section-heading p { margin: 0; color: #58677b; font-size: 13px; line-height: 1.6; }

@media (max-width: 840px) {
    .access-layout { grid-template-columns: 1fr; }
    .access-brand { min-height: auto; padding: 22px clamp(24px, 6vw, 52px); }
    .brand-symbol { width: 38px; height: 38px; flex-basis: 38px; font-size: 21px; border-radius: 10px; }
    .brand-message, .brand-bottom, .access-brand::after { display: none; }
    /* No login, aproveita o cabeçalho mobile para apresentar a Dalu Sistemas. */
    .access-page--login .access-layout { grid-template-rows: auto minmax(0, 1fr); }
    .access-page--login .access-brand { justify-content: flex-start; gap: 18px; padding-bottom: 24px; }
    .access-page--login .brand-message { display: block; }
    .access-page--login .brand-eyebrow { font-size: 10px; }
    .access-page--login .brand-title { max-width: 460px; margin: 10px 0 8px; font-size: clamp(29px, 5vw, 38px); line-height: 1.12; letter-spacing: -0.04em; }
    .access-page--login .brand-description { max-width: 460px; font-size: 13px; line-height: 1.5; }
    .access-page--login .brand-rule { display: none; }
    .access-page--login .access-workspace { padding-top: 26px; }
    .access-workspace { padding: 50px 24px 26px; }
    .access-card { max-width: 460px; }
}

@media (max-width: 480px) {
    .access-workspace { padding: 38px 22px 22px; }
    .access-page--login .brand-title { font-size: clamp(27px, 7.3vw, 32px); }
    .access-page--login .access-workspace { padding-top: 24px; }
    .access-heading h1 { font-size: 29px; }
    .access-heading p { margin-bottom: 25px; }
    .access-heading--login { margin-bottom: 25px; }
    .field-label-row { align-items: flex-start; }
    .access-secondary-actions { align-items: stretch; }
    .access-secondary-actions form, .access-secondary-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .access-page input, .access-page select, .access-page .button { transition: none; }
}
