/* ==========================================================================
   OnePAY Web — identidade visual KAEFER
   Fonte das cores: "KAEFER colours" (Corporate Design Manual, 23/06/2026).
   Estratégia: Dark Grey estrutura a interface, KAEFER Red é o único acento de
   ação (CTA, item ativo, marcas), Silver/Light Silver fazem os neutros e as
   cores secundárias (decorativas) ficam restritas a significado de status.
   ========================================================================== */

:root {
  /* --- Primárias --- */
  --kf-red: #de3518;          /* "HEX for websites" (impressão: #e63719) — 4,5:1 com texto branco */
  --kf-dark: #2c414a;         /* Dark Grey */
  --kf-silver: #929ea5;       /* Silver */
  --kf-light-silver: #d8dcdf; /* Light Silver */

  /* --- Secundárias / decorativas --- */
  --kf-sunny-yellow: #f5d700;
  --kf-apple-green: #96be0a;
  --kf-astral-blue: #009dcc;
  --kf-raspberry: #d7007f;
  --kf-honey: #f9b000;
  --kf-grass: #13a538;
  --kf-sapphire: #0069b4;
  --kf-fuchsia: #9e1981;
  --kf-pumpkin: #f08c00;
  --kf-forest: #00785f;
  --kf-ocean: #004696;
  --kf-plum: #702283;

  /* --- Derivados (tons das primárias, p/ contraste e profundidade) --- */
  --kf-red-dark: #b92a11;     /* hover do botão vermelho */
  --kf-red-ink: #c42e13;      /* vermelho p/ texto sobre branco (5,6:1) */
  --kf-dark-deep: #213139;    /* rodapé / áreas mais profundas */
  --muted: #586a73;           /* texto secundário (5,6:1 sobre branco) */
  --on-dark-muted: #b9c3c8;   /* texto secundário sobre Dark Grey */
  --field-border: #7d8d96;    /* borda de campos (3,5:1) */

  /* --- Superfícies --- */
  --bg: #f3f5f6;
  --surface: #ffffff;
  --surface-alt: #f6f8f9;
  --line: var(--kf-light-silver);
  --line-soft: #e6e9eb;
  --ink: var(--kf-dark);

  /* --- Status --- */
  --ok: var(--kf-forest);
  --ok-bg: #e4f1ed;
  --warn-bg: #fff4d6;
  --danger: var(--kf-red-ink);
  --danger-bg: #fdeeea;
  --focus: var(--kf-sapphire);

  --r: 4px;
  --r-lg: 6px;
  --shadow: 0 1px 2px rgba(33, 49, 57, .06), 0 1px 3px rgba(33, 49, 57, .04);
  --font: Figtree, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
img, svg { display: block; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hero :focus-visible, .login-aside :focus-visible, .app-footer :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--kf-dark); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

/* ============ Splash / erro ============ */
.app-splash { display: grid; place-items: center; min-height: 100vh; color: var(--muted); font-weight: 600; }

.loading-progress { position: relative; width: 7rem; height: 7rem; margin: 22vh auto 1rem; }
.loading-progress circle { fill: none; stroke: var(--kf-light-silver); stroke-width: .5rem; transform-origin: 50% 50%; transform: rotate(-90deg); }
.loading-progress circle:last-child { stroke: var(--kf-red); stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%; transition: stroke-dasharray .05s ease-in-out; }
.loading-progress-text { position: absolute; left: 0; right: 0; top: calc(22vh + 3rem); text-align: center; font-weight: 700; color: var(--kf-dark); }
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Carregando"); }

#blazor-error-ui {
  background: #fff; border-top: 4px solid var(--kf-red);
  bottom: 0; left: 0; right: 0;
  box-shadow: 0 -8px 24px rgba(33, 49, 57, .15);
  display: none; padding: 12px 18px; position: fixed; z-index: 1000; color: var(--ink);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 14px; top: 10px; }

/* ============ Estrutura da página ============ */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }
.content { padding: 32px 0 56px; }

/* ============ Cabeçalho ============ */
.app-header { background: var(--surface); border-top: 4px solid var(--kf-red); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.app-header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand-link { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.brand-logo { height: 46px; width: auto; margin-inline: -10px; }
.brand-sep { width: 1px; height: 28px; background: var(--line); }
.brand-name { display: grid; line-height: 1.15; }
.brand-name strong { font-size: 16px; font-weight: 700; color: var(--kf-dark); }
.brand-name span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.app-nav { display: flex; align-self: stretch; gap: 4px; }
.app-nav a { display: flex; align-items: center; padding: 0 16px; font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.app-nav a:hover { color: var(--kf-dark); border-bottom-color: var(--kf-light-silver); }
.app-nav a.active { color: var(--kf-dark); border-bottom-color: var(--kf-red); }

.app-user { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: var(--r); background: var(--kf-dark); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.user-name { font-size: 14px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ Botões ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r);
  font-weight: 700; font-size: 14.5px; line-height: 1; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; gap: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--kf-red); color: #fff; }
.btn-primary:hover { background: var(--kf-red-dark); }
.btn-outline { background: #fff; color: var(--kf-dark); border-color: var(--kf-dark); }
.btn-outline:hover { background: var(--kf-dark); color: #fff; }
.btn-light-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-light-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--kf-red); }

.soft-link { color: var(--kf-sapphire); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; background: none; border: none; padding: 0; }
.soft-link:hover { text-decoration: underline; }

/* ============ Hero (faixa escura) ============ */
.hero, .login-aside {
  position: relative; overflow: hidden; color: #fff;
  background-color: var(--kf-dark);
  background-image:
    linear-gradient(115deg, transparent 0 62%, rgba(24, 38, 45, .38) 62% 100%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  background-position: 0 0, -1px -1px, -1px -1px;
}
.hero { padding: 48px 0 56px; }
.hero-compact { padding: 32px 0 36px; }
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--kf-red); }
.hero h1, .login-hero h1 { font-weight: 700; letter-spacing: -.01em; }
.hero h1 { margin: 16px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.hero h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--kf-red); margin-top: 20px; }
.hero-copy { margin-top: 20px; max-width: 600px; color: var(--kf-light-silver); font-size: 16.5px; line-height: 1.6; }
.hero-compact .hero-copy { margin-top: 14px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { margin-top: 14px; color: var(--on-dark-muted); font-size: 14.5px; }
.hero-message { margin-top: 16px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 700; font-size: 13.5px; color: var(--on-dark-muted); }
.back-link:hover { color: #fff; }

.salary-card { border: 1px solid rgba(255, 255, 255, .18); border-top: 4px solid var(--kf-red); border-radius: var(--r); background: rgba(255, 255, 255, .06); padding: 24px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.salary-value { margin: 18px 0 4px; font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.salary-note { color: var(--on-dark-muted); font-size: 14px; }
.micro-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.micro { padding: 16px 12px 0 0; }
.micro + .micro { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .18); }
.micro small { display: block; color: var(--on-dark-muted); font-size: 12px; margin-bottom: 6px; }
.micro strong { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============ Painéis e dashboard ============ */
.context-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.context-bar label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.context-select { min-width: 280px; height: 40px; padding: 0 12px; border: 1px solid var(--field-border); border-radius: var(--r); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }

.dashboard { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stack { display: grid; gap: 24px; min-width: 0; }
.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.panel-title h2 { font-size: 18px; font-weight: 700; color: var(--kf-dark); }
.panel-title p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.panel-body { padding: 24px; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.summary-card { border: 1px solid var(--line); border-left: 4px solid var(--kf-silver); border-radius: var(--r); background: #fff; padding: 16px 18px; min-width: 0; }
.summary-card.income { border-left-color: var(--kf-grass); }
.summary-card.discount { border-left-color: var(--kf-red); }
.summary-card.result { border-left-color: var(--kf-dark); background: var(--surface-alt); }
.summary-card small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.summary-card strong { display: block; margin: 10px 0 6px; font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--kf-dark); overflow-wrap: anywhere; }
.trend { font-size: 12.5px; color: var(--muted); }
.trend.ok { color: var(--ok); font-weight: 600; }
.trend.bad { color: var(--danger); font-weight: 600; }

.progress-card { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 18px 20px; display: grid; gap: 12px; }
.progress-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.progress-title strong { font-size: 15px; }
.progress-pct { font-size: 22px; font-weight: 700; color: var(--ok); font-variant-numeric: tabular-nums; }
.progress-line { height: 10px; border-radius: 2px; background: var(--kf-light-silver); overflow: hidden; }
.progress-fill { height: 100%; background: var(--kf-grass); }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }

.extended-access-card { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; padding: 16px 20px; background: var(--warn-bg); border: 1px solid #f1d58a; border-left: 4px solid var(--kf-honey); border-radius: var(--r); }
.extended-access-card > .icon { flex: 0 0 auto; color: #7a5200; margin-top: 2px; }
.extended-access-card strong { color: #5c3d00; }
.extended-access-card p { margin-top: 4px; color: #5a4a22; font-size: 14px; line-height: 1.55; }

/* listas de documentos */
.doc-list { display: grid; }
.doc-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 24px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; text-align: left; cursor: pointer; transition: background-color .12s; }
.doc-item:last-child { border-bottom: 0; }
.doc-item:hover { background: var(--surface-alt); }
.doc-item:hover .doc-chevron { color: var(--kf-red); transform: translateX(3px); }
.doc-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: var(--r); display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.doc-icon.warn { background: var(--kf-honey); color: var(--kf-dark); }
.doc-icon.legado { background: var(--kf-light-silver); color: #44565f; }
.doc-body { flex: 1; min-width: 0; }
.doc-period { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.doc-title { font-weight: 700; font-size: 15px; color: var(--kf-dark); }
.doc-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.doc-chevron { color: var(--kf-silver); flex: 0 0 auto; transition: transform .15s, color .15s; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--ok-bg); color: var(--ok); }
.badge.pending { background: var(--kf-honey); color: var(--kf-dark); }
.badge.legado { background: var(--kf-light-silver); color: #44565f; }
.hero .badge { background: var(--kf-forest); color: #fff; }
.hero .badge.pending { background: var(--kf-honey); color: var(--kf-dark); }
.hero .badge.legado { background: var(--kf-light-silver); color: var(--kf-dark); }
.status-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r); font-weight: 600; font-size: 14px; color: #fff; }

/* acesso rápido */
.quick-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; text-align: left; cursor: pointer; transition: background-color .12s; }
.quick-card:last-child { border-bottom: 0; }
.quick-card:hover { background: var(--surface-alt); }
.quick-card:hover .doc-chevron { color: var(--kf-red); transform: translateX(3px); }
.quick-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: var(--r); display: grid; place-items: center; background: var(--kf-dark); color: #fff; }
.quick-card strong { display: block; font-size: 15px; color: var(--kf-dark); }
.quick-card span.desc { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 1px; }

.callout { background: var(--kf-dark-deep); color: #fff; border-left: 4px solid var(--kf-red); border-radius: var(--r); padding: 20px 22px; }
.callout h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.callout p { color: var(--kf-light-silver); font-size: 14px; line-height: 1.55; }

/* privacidade (ocultar valores) */
.hidden-value .money > span { display: none; }
.hidden-value .money:after { content: attr(data-mask); }

/* ============ Tabela de eventos (detalhe) ============ */
.table-wrap { overflow-x: auto; }
.evt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.evt-table th { text-align: left; background: var(--bg); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.evt-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.evt-table tbody tr:last-child td { border-bottom: none; }
.evt-table tbody tr:hover td { background: var(--surface-alt); }
.evt-table th.num, .evt-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.evt-table th.center, .evt-table td.center { text-align: center; font-variant-numeric: tabular-nums; }
.evt-table td.cod { color: var(--muted); font-variant-numeric: tabular-nums; }
.evt-table td.tipo { color: var(--muted); font-size: 13px; }
.evt-prov { color: var(--ok); font-weight: 700; }
.evt-desc { color: var(--danger); font-weight: 700; }
.evt-base { color: var(--muted); }

/* ============ Abas (filtro) ============ */
.tabs { display: flex; gap: 4px; padding: 0 20px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; }
.tabs button { border: 0; background: none; padding: 14px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.tabs button:hover { color: var(--kf-dark); }
.tabs button.active { color: var(--kf-dark); border-bottom-color: var(--kf-red); }

/* ============ Estados ============ */
.state { padding: 48px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.state .icon { color: var(--kf-silver); }
.state.state-ok .icon { color: var(--ok); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--kf-light-silver); border-top-color: var(--kf-red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Rodapé ============ */
.app-footer { background: var(--kf-dark-deep); color: var(--on-dark-muted); font-size: 13px; }
.app-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; }
.app-footer strong { color: #fff; letter-spacing: .06em; }
.footer-secure { display: inline-flex; align-items: center; gap: 8px; }

/* ============ Login (split screen) ============ */
.login-page { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.login-aside { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.login-aside > * { position: relative; }
/* O PNG do logo tem margem transparente: as margens negativas alinham o desenho à grade do conteúdo. */
.login-logo { align-self: flex-start; height: 76px; width: auto; margin: -16px 0 0 -22px; }
.login-hero { max-width: 540px; margin-block: auto; }
.login-hero h1 { margin: 18px 0 0; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; }
.login-hero h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--kf-red); margin-top: 22px; }
.login-hero p { margin-top: 22px; color: var(--kf-light-silver); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
.login-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.login-points li { display: flex; align-items: center; gap: 14px; color: var(--kf-light-silver); font-size: 14.5px; }
.login-points .pt-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r); color: #fff; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #aab6bc; font-size: 12.5px; }

.login-main { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 56px); background: #fff; }
.login-card { width: min(420px, 100%); }
.form-header { margin-bottom: 24px; }
.form-header h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; line-height: 1.15; color: var(--kf-dark); }
.form-header p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.kglobal-note { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-alt); border: 1px solid var(--line); border-left: 4px solid var(--kf-silver); color: var(--muted); font-size: 13px; line-height: 1.45; }
.kglobal-note strong { color: var(--kf-dark); }
.kg { width: 36px; height: 36px; flex: 0 0 auto; border-radius: var(--r); display: grid; place-items: center; background: var(--kf-dark); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.kg.ok { background: var(--kf-forest); }

.fields { display: grid; gap: 18px; }
.field label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--kf-dark); font-size: 13px; font-weight: 700; }
.field small { color: var(--muted); font-weight: 400; }
.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #667780; pointer-events: none; }
.input-wrap input { width: 100%; height: 48px; padding: 0 48px 0 44px; border: 1px solid var(--field-border); border-radius: var(--r); background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.input-wrap input::placeholder { color: #667780; }
.input-wrap input:focus { border-color: var(--kf-sapphire); box-shadow: 0 0 0 3px rgba(0, 105, 180, .22); }
.input-wrap input.otp { padding: 0 16px; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: .5em; text-indent: .5em; }
.input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: none; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; }
.input-action:hover { background: var(--bg); color: var(--kf-dark); }
.login-btn { margin-top: 22px; min-height: 50px; font-size: 15.5px; }
.login-error { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--danger-bg); border: 1px solid #f3c2b8; border-left: 4px solid var(--kf-red); color: #8a2210; font-size: 13.5px; font-weight: 600; }
.login-error .icon { flex: 0 0 auto; margin-top: 1px; }
.security-line { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; text-align: center; }
.security-line .icon { color: var(--ok); flex: 0 0 auto; }

.login-switch { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.link-btn { border: none; background: transparent; color: var(--kf-sapphire); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

/* ============ Responsivo ============ */
@media (max-width: 1080px) {
  .hero-grid, .dashboard { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
}
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-aside { gap: 28px; }
  .login-hero { margin-block: 8px; }
  .login-points { display: none; }
}
@media (max-width: 820px) {
  .app-header-inner { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .brand-name span, .brand-sep { display: none; }
  .app-nav { order: 3; flex: 1 0 100%; margin: 8px -4px 0; border-top: 1px solid var(--line-soft); }
  .app-nav a { padding: 12px 16px; }
  .user-name { display: none; }
  .list-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .brand-logo { height: 40px; }
  .login-logo { height: 64px; margin: -12px 0 0 -18px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 32px 0 36px; }
  .salary-card { padding: 20px; }
  .card-topline { flex-direction: column; align-items: flex-start; }
  .micro strong { font-size: 17px; }
  .micro + .micro { padding-left: 12px; }
  .summary-grid { grid-template-columns: 1fr; }
  .panel-header, .panel-body { padding: 16px; }
  .doc-item, .quick-card { padding: 12px 16px; }
  .context-select { min-width: 0; width: 100%; }
  .tabs { padding: 0 8px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}
