:root {
    --rz-primary: #315c46;
    --rz-primary-light: #e9f0eb;
    --rz-on-primary: #fff;
    --rz-text-font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    --rz-body-font-size: 15px;
    --rz-border-radius: 6px;
    --ink: #1e2d26;
    --muted: #6a756e;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: #f4f5f1; color: var(--ink); font-family: var(--rz-text-font-family); -webkit-font-smoothing: antialiased; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b0cb70; outline-offset: 4px; }
.portal-page { min-height: 100dvh; display: flex; flex-direction: column; max-width: 1280px; margin: auto; padding: 0 48px; }
.portal-header { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { width: 146px; height: auto; display: block; mix-blend-mode: multiply; }
.corporate-link { color: #4c5d52 !important; font-size: 13px; text-decoration: none !important; }
.corporate-link:hover { color: #244833 !important; text-decoration: underline !important; }
.portal-main { flex: 1; display: flex; align-items: center; padding: 12px 0 20px; }
.portal-grid { width: 100%; min-height: 664px; overflow: hidden; border-radius: 14px; background: white; border: 1px solid #e1e6dc; box-shadow: 0 12px 48px #273e2910; }
.welcome-panel { position: relative; isolation: isolate; background: #243e31; color: #fff; padding: 58px 52px 38px; }
.welcome-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("images/topografia.svg") no-repeat right bottom / 100% auto; opacity: .6; }
.welcome-content { height: 100%; }
.eyebrow { color: #c3d898; font-size: 11px !important; font-weight: 650; letter-spacing: .17em; margin: 0 0 30px !important; }
.welcome-title { font-size: clamp(32px, 3.3vw, 44px) !important; line-height: 1.15 !important; letter-spacing: -.04em; font-weight: 550 !important; margin: 0 0 22px !important; color: white; }
.welcome-intro { font-size: 16px !important; line-height: 1.7 !important; color: #d1dcd4; max-width: 34ch; margin: 0 !important; }
.workflow { margin-top: 56px; margin-bottom: 54px; }
.workflow-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid !important; place-items: center; background: #ffffff0d; border: 1px solid #ffffff26; border-radius: 10px; color: #c8dca5; font-size: 21px !important; }
.workflow-title { margin: 0 !important; color: #f7faf5; font-size: 14px !important; font-weight: 600 !important; }
.workflow-description { margin: 0 !important; color: #beccc2; font-size: 12px !important; line-height: 1.55 !important; }
.welcome-footnote { margin: auto 0 0 !important; padding-top: 24px; border-top: 1px solid #ffffff24; color: #c2d0c6; font-size: 12px !important; }
.access-panel { padding: 58px 46px 40px; }
.access-caption { margin-bottom: 26px; color: #637965; }
.access-caption .rzi { font-size: 15px; }
.access-caption p { margin: 0; font-size: 10px; font-weight: 650; letter-spacing: .13em; }
.access-title { color: var(--ink); font-size: 27px !important; line-height: 1.25 !important; letter-spacing: -.03em; font-weight: 600 !important; margin: 0 0 12px !important; }
.access-intro { color: var(--muted); font-size: 13px !important; line-height: 1.6 !important; margin: 0 !important; }
.login-form { margin-top: 32px; }
.login-form .rz-label { color: #394c40; font-size: 13px; font-weight: 600; }
.login-form .rz-textbox, .login-form .rz-password { min-width: 0; height: 48px; border: 1px solid #d6dfd6; border-radius: 6px; background: #fff; box-shadow: none; padding: 0 14px; font-size: 14px; color: var(--ink); }
.login-form input::placeholder { color: #87928a; }
.login-form input:focus { border-color: #547d5f; outline: none; box-shadow: 0 0 0 3px #547d5f19; }
.password-control { position: relative; width: 100%; }
.password-input { width: 100%; padding-right: 48px !important; }
.password-toggle { position: absolute !important; right: 5px; width: 38px; min-width: 38px !important; height: 38px; color: #6d7f72 !important; }
.password-toggle:hover { background: #eff3ed !important; }
.login-submit { width: 100%; height: 48px; margin-top: 4px; border-radius: 6px !important; box-shadow: none !important; background: #315c46 !important; font-size: 13px !important; text-transform: none !important; font-weight: 600; }
.login-submit:hover { background: #244834 !important; }
.login-submit .rz-button-box { width: 100%; flex-direction: row-reverse; justify-content: center; gap: 12px; }
.login-submit .rzi { font-size: 18px; }
.field-validation { position: static !important; color: #aa3b2b; font-size: 12px; }
.help-button { align-self: center; margin-top: 13px; min-height: 36px; font-size: 12px !important; color: #4f6b57 !important; text-transform: none !important; padding: 4px 6px !important; }
.help-button:hover { background: #f1f5ed !important; }
.access-message { margin-top: 18px !important; font-size: 12px; line-height: 1.6; }
.activation-notice { margin-top: 24px; padding: 14px; border-radius: 6px; background: #f5f5ed; color: #706b45; }
.activation-notice .rzi { flex: 0 0 16px; font-size: 16px; margin-top: 2px; }
.activation-notice p { margin: 0; font-size: 11px; line-height: 1.6; }
.invitation-note { margin: 21px 0 0 !important; color: #7c877e; font-size: 11px !important; line-height: 1.7 !important; }
.portal-footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 28px; color: #838c84; font-size: 11px; }
.simple-page { margin: 15vh auto; max-width: 540px; padding: 32px; }
#blazor-error-ui { font-family: var(--rz-text-font-family); }
#blazor-error-ui button { border: 0; background: none; color: inherit; }
.validation-message { color: #aa3b2b; }
@media (max-width: 1100px) {
    .portal-page { padding: 0 30px; }
    .welcome-panel { padding: 50px 36px 34px; }
    .access-panel { padding: 50px 32px 34px; }
    .access-title { font-size: 25px !important; }
}
@media (max-width: 1023px) {
    .portal-page { padding: 0 18px; }
    .portal-header { min-height: 88px; }
    .brand-logo { width: 120px; }
    .portal-main { align-items: flex-start; padding-top: 0; }
    .portal-grid { min-height: 0; }
    .welcome-panel { padding: 32px 28px; }
    .eyebrow { margin-bottom: 18px !important; }
    .welcome-title { font-size: 31px !important; margin-bottom: 14px !important; }
    .welcome-intro { font-size: 14px !important; max-width: none; }
    .workflow, .welcome-footnote { display: none !important; }
    .access-panel { padding: 32px 28px; }
    .access-caption { margin-bottom: 18px; }
    .access-title { font-size: 25px !important; }
    .portal-footer { padding: 15px 0 24px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
