/*
 * CSC JAZZ · skin das telas de autenticação do Postal 3.3.7
 * Servido em /csc-skin/postal/login.css (depois de /csc-skin/core/tokens.css).
 *
 * Escopo: tudo vive sob `html.subPage body.csc-auth` (classe posta pelo login.js
 * só em /login, /login/reset e /login/reset/:token). O resto do painel não é tocado.
 * As cores leem os tokens do core (--csc-*) com o valor do design system como
 * reserva, então a tela fica correta mesmo se tokens.css não carregar.
 */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Instrument+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ── Antes do JS: evita o "piscar" do login antigo. Se o JS falhar, o
   formulário original reaparece sozinho em 1,2s. ── */
html.subPage:has(form.loginForm) { background: #F4F6FB; }
html.subPage:has(form.loginForm) body:not(.csc-auth) .subPageBox {
  visibility: hidden;
  animation: csc-l-failsafe 0s linear 1.2s forwards;
}
@keyframes csc-l-failsafe { to { visibility: visible; } }

html.csc-auth-root {
  background: var(--csc-paper, #F4F6FB);
  height: auto; max-height: none;
}

html.subPage body.csc-auth {
  --k-ink: var(--csc-ink, #060435);
  --k-blue: var(--csc-blue, #1B0DAE);
  --k-blue-light: var(--csc-blue-light, #4B3BE0);
  --k-blue-dark: var(--csc-blue-dark, #0A0660);
  --k-blue-50: var(--csc-blue-50, #EDEBFA);
  --k-acc: var(--csc-acc, #00D2FF);
  --k-acc-ink: var(--csc-acc-ink, #0B6C8C);
  --k-paper: var(--csc-paper, #F4F6FB);
  --k-white: #FFFFFF;
  --k-g200: var(--csc-gray-200, #DADEEC);
  --k-g300: var(--csc-gray-300, #BDC3DA);
  --k-g400: var(--csc-gray-400, #8A92B0);
  --k-g500: var(--csc-gray-500, #616A89);
  --k-g700: var(--csc-gray-700, #323952);
  --k-g900: var(--csc-gray-900, #151929);
  --k-g950: var(--csc-gray-950, #0B0E1B);
  --k-success: var(--csc-success, #0E7A57);
  --k-success-bg: var(--csc-success-bg, #E3F6EF);
  --k-success-border: var(--csc-success-border, #A6DFCB);
  --k-danger: var(--csc-danger, #C22B44);
  --k-danger-bg: var(--csc-danger-bg, #FCE8EC);
  --k-danger-border: var(--csc-danger-border, #F2BEC8);
  --k-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --k-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --k-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --k-shadow-sm: 0 1px 3px rgba(10,6,60,.06), 0 1px 2px rgba(10,6,60,.04);
  --k-shadow-md: 0 4px 12px -2px rgba(10,6,60,.09), 0 2px 6px -2px rgba(10,6,60,.06);
  --k-shadow-lg: 0 16px 40px -8px rgba(10,6,60,.14), 0 6px 14px -6px rgba(10,6,60,.08);
  --k-ring: 0 0 0 3px rgba(0,210,255,.5);
  --k-r: 14px; --k-r-lg: 20px; --k-r-sm: 10px; --k-r-xs: 8px;
  --k-ease: cubic-bezier(.2,.7,.1,1);
  --k-panel: clamp(440px, 36vw, 560px);

  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--k-panel);
  min-height: 100vh; min-height: 100dvh;
  margin: 0; padding: 0;
  background: var(--k-paper);
  color: var(--k-g900);
  font-family: var(--k-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.subPage body.csc-auth *,
html.subPage body.csc-auth *::before,
html.subPage body.csc-auth *::after { box-sizing: border-box; }

/* ── Compasso: três segmentos sólidos ── */
html.subPage body.csc-auth .csc-compasso { display: flex; height: 3px; gap: 0; }
html.subPage body.csc-auth .csc-compasso i { flex: 1; display: block; transform-origin: left center; }
html.subPage body.csc-auth .csc-compasso i:nth-child(1) { background: var(--k-blue-dark); }
html.subPage body.csc-auth .csc-compasso i:nth-child(2) { background: var(--k-blue-light); }
html.subPage body.csc-auth .csc-compasso i:nth-child(3) { background: var(--k-acc); }

/* ═════════════ Herói ═════════════ */
html.subPage body.csc-auth .csc-hero {
  grid-column: 1; grid-row: 1;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 40px clamp(32px, 4.4vw, 72px) 48px;
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(90% 70% at 78% 38%, rgba(75,59,224,.10), transparent 62%),
    radial-gradient(60% 50% at 10% 100%, rgba(0,210,255,.07), transparent 70%),
    var(--k-paper);
}
/* Grade pontilhada: a textura do "papel milimetrado" do envio. */
html.subPage body.csc-auth .csc-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(10,6,60,.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
          mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
}
/* Véu de leitura atrás do texto, por cima da cena. */
html.subPage body.csc-auth .csc-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(244,246,251,.92) 0%, rgba(244,246,251,.55) 34%, rgba(244,246,251,0) 62%);
}
html.subPage body.csc-auth .csc-hero__scene {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  display: block; opacity: 0; transition: opacity 1.4s var(--k-ease) .25s;
  /* dicas lidas pelo scene.js do core: logo à direita, atrás do véu */
  --csc-scene-shift-x: .29; --csc-scene-shift-y: .06; --csc-scene-scale: .64;
}
html.subPage body.csc-auth.csc-scene-on .csc-hero__scene { opacity: 1; }
/* a cena fica entre a grade e o véu */
html.subPage body.csc-auth .csc-hero > .csc-hero__scene { z-index: -1; }
html.subPage body.csc-auth .csc-hero > :not(canvas) { position: relative; z-index: 1; }

html.subPage body.csc-auth .csc-hero__top { display: flex; align-items: center; gap: 16px; }
html.subPage body.csc-auth .csc-mark { display: inline-flex; align-items: center; gap: 11px; color: var(--k-ink); }
html.subPage body.csc-auth .csc-mark svg { height: 30px; width: auto; display: block; }
html.subPage body.csc-auth .csc-mark__name { font-family: var(--k-sans); font-size: 15px; line-height: 1; display: inline-flex; gap: 6px; }
html.subPage body.csc-auth .csc-mark__name b { font-weight: 800; letter-spacing: -0.02em; color: var(--k-ink); }
html.subPage body.csc-auth .csc-mark__name i { font-style: normal; font-weight: 400; letter-spacing: .19em; color: var(--k-blue); }
html.subPage body.csc-auth .csc-hero__divider { width: 1px; height: 24px; background: var(--k-g300); }
html.subPage body.csc-auth .csc-hero__product,
html.subPage body.csc-auth .csc-mono {
  font-family: var(--k-mono); font-size: 12.5px; font-weight: 500; color: var(--k-g500); letter-spacing: .01em;
}

html.subPage body.csc-auth .csc-hero__body { max-width: 760px; }
html.subPage body.csc-auth .csc-eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-family: var(--k-sans); font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--k-g500);
}
html.subPage body.csc-auth .csc-eyebrow::before {
  content: ''; width: 27px; height: 3px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--k-blue-dark) 0 33.34%, var(--k-blue-light) 33.34% 66.67%, var(--k-acc) 66.67% 100%);
}
html.subPage body.csc-auth .csc-hero__title {
  margin: 0; font-family: var(--k-display);
  font-size: clamp(54px, 6.6vw, 104px); line-height: .92; font-weight: 700;
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.045em; color: var(--k-ink);
}
html.subPage body.csc-auth .csc-hero__title span { display: block; }
html.subPage body.csc-auth .csc-hero__title span + span { color: var(--k-blue); }
html.subPage body.csc-auth .csc-hero__lede {
  margin: 26px 0 0; max-width: 27em;
  font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.55; font-weight: 500; color: var(--k-g700);
}

/* Envelope: os cabeçalhos da sessão, como os de uma mensagem. */
html.subPage body.csc-auth .csc-envelope {
  margin: 0; width: min(440px, 100%);
  padding: 16px 18px; border-radius: var(--k-r);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(218,222,236,.9);
  box-shadow: var(--k-shadow-md);
  font-family: var(--k-mono); font-size: 12.5px; line-height: 1.5;
}
html.subPage body.csc-auth .csc-envelope > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 5px 0; }
html.subPage body.csc-auth .csc-envelope > div + div { border-top: 1px dashed var(--k-g200); }
html.subPage body.csc-auth .csc-envelope dt { color: var(--k-g400); font-weight: 500; }
html.subPage body.csc-auth .csc-envelope dd { margin: 0; color: var(--k-g950); font-weight: 500; display: flex; align-items: center; gap: 8px; min-width: 0; }
html.subPage body.csc-auth .csc-envelope__status dd { color: var(--k-acc-ink); }
html.subPage body.csc-auth .csc-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--k-acc); flex: none;
  box-shadow: 0 0 0 0 rgba(0,210,255,.55);
  animation: csc-l-pulse 2.4s ease-out infinite;
}
html.subPage body.csc-auth .csc-caret {
  width: 7px; height: 14px; background: var(--k-acc-ink); opacity: .7; margin-left: -4px;
  animation: csc-l-blink 1.1s steps(1) infinite;
}
html.subPage body.csc-auth.csc-submitting .csc-pulse { animation-duration: .9s; }

html.subPage body.csc-auth .csc-hero__compasso { position: absolute; left: 0; right: 0; bottom: 0; display: none; }

/* ═════════════ Painel (a própria .subPageBox do Postal) ═════════════ */
html.subPage body.csc-auth .subPageBox {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 2;
  width: auto; margin: 0; overflow: visible;
  display: flex; flex-direction: column;
  padding: 44px clamp(36px, 3.6vw, 64px) 32px;
  background: var(--k-white);
  border: 0; border-left: 1px solid var(--k-g200); border-radius: 0;
  box-shadow: -24px 0 60px -30px rgba(10,6,60,.18);
}
html.subPage body.csc-auth .subPageBox::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--k-blue-dark) 0 33.34%, var(--k-blue-light) 33.34% 66.67%, var(--k-acc) 66.67% 100%);
  transform-origin: left center;
}
html.subPage body.csc-auth .subPageBox > * { width: 100%; max-width: 384px; margin-left: auto; margin-right: auto; }
html.subPage body.csc-auth .csc-panel__eyebrow { margin-top: auto; }

html.subPage body.csc-auth .csc-panel__eyebrow {
  font-family: var(--k-mono); font-size: 12px; font-weight: 500; color: var(--k-acc-ink);
  letter-spacing: .02em; margin-bottom: 10px;
}
html.subPage body.csc-auth .subPageBox__title {
  padding: 0; margin-bottom: 0; background: none; border: 0; text-align: left;
  font-family: var(--k-display); font-size: 36px; line-height: 1.05; font-weight: 700;
  letter-spacing: -0.03em; color: var(--k-g950);
}
html.subPage body.csc-auth .csc-panel__lede,
html.subPage body.csc-auth .subPageBox__text {
  margin-top: 10px; margin-bottom: 28px;
  font-size: 15px; line-height: 1.5; color: var(--k-g500); font-weight: 500;
}
html.subPage body.csc-auth .subPageBox__content { padding: 0; }
html.subPage body.csc-auth .subPageBox__content .subPageBox__text { max-width: none; }

/* Campos */
html.subPage body.csc-auth .loginForm__input { margin: 0 0 18px; position: relative; }
html.subPage body.csc-auth .csc-label {
  display: block; margin-bottom: 7px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--k-g500);
  transition: color .15s;
}
html.subPage body.csc-auth .csc-field:focus-within .csc-label { color: var(--k-blue); }
html.subPage body.csc-auth .loginForm .input {
  display: block; width: 100%; height: 50px; padding: 0 15px;
  font-family: var(--k-sans); font-size: 15.5px; font-weight: 500; color: var(--k-g950);
  background: var(--k-white);
  border: 1px solid var(--k-g300); border-radius: var(--k-r-sm);
  box-shadow: 0 1px 2px rgba(10,6,60,.04) inset;
  transition: border-color .15s, box-shadow .2s, background-color .15s;
  outline: 0;
}
html.subPage body.csc-auth .loginForm .input::placeholder { color: var(--k-g400); font-weight: 400; opacity: 1; }
html.subPage body.csc-auth .loginForm .input:hover { border-color: var(--k-g400); }
html.subPage body.csc-auth .loginForm .input:focus {
  border-color: var(--k-blue); box-shadow: var(--k-ring);
}
html.subPage body.csc-auth .loginForm .input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--k-blue-50) inset; -webkit-text-fill-color: var(--k-g950);
}
html.subPage body.csc-auth .loginForm .input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px var(--k-blue-50) inset, 0 0 0 3px rgba(0,210,255,.5);
}
html.subPage body.csc-auth .csc-field--password .input { padding-right: 52px; }
html.subPage body.csc-auth .csc-field--password .input[type=password] { font-family: var(--k-mono); letter-spacing: .08em; }
html.subPage body.csc-auth .csc-field--password .input[type=password]::placeholder { font-family: var(--k-sans); letter-spacing: 0; }
html.subPage body.csc-auth .csc-reveal {
  position: absolute; right: 6px; bottom: 6px;
  width: 38px; height: 38px; padding: 0; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: var(--k-r-xs); cursor: pointer;
  color: var(--k-g400); transition: color .15s, background-color .15s, box-shadow .15s;
}
html.subPage body.csc-auth .csc-reveal svg { width: 19px; height: 19px; }
html.subPage body.csc-auth .csc-reveal:hover { color: var(--k-blue); background: var(--k-blue-50); }
html.subPage body.csc-auth .csc-reveal:focus-visible { outline: 0; box-shadow: var(--k-ring); color: var(--k-blue); }
html.subPage body.csc-auth .csc-caps {
  position: absolute; right: 0; top: 0; font-family: var(--k-mono); font-size: 11px; font-weight: 500;
  color: var(--k-acc-ink); line-height: 16px;
}

/* Rodapé do formulário: botão em largura cheia, link embaixo. A ordem de
   tabulação do Postal (tabindex 1-2-3, link depois) bate com a visual. */
html.subPage body.csc-auth .loginForm__submit {
  display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin-top: 26px;
}
html.subPage body.csc-auth .loginForm__submit > p { order: 1; position: relative; margin: 0; }
html.subPage body.csc-auth .loginForm__links { order: 2; text-align: center; font-size: 14px; text-decoration: none; line-height: 1.4; }
html.subPage body.csc-auth .loginForm__links li { list-style: none; }
html.subPage body.csc-auth .loginForm__links a {
  color: var(--k-blue); font-weight: 600; text-decoration: none;
  border-radius: 4px; padding: 2px 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 50% 100%; background-repeat: no-repeat;
  transition: background-size .25s var(--k-ease), color .15s;
}
html.subPage body.csc-auth .loginForm__links a:hover { color: var(--k-blue-dark); background-size: 100% 1px; }
html.subPage body.csc-auth .loginForm__links a:focus-visible { outline: 0; box-shadow: var(--k-ring); }

html.subPage body.csc-auth .loginForm .button,
html.subPage body.csc-auth .loginForm__oidcButton .button {
  display: block; width: 100%; height: 52px; padding: 0 20px; margin: 0;
  font-family: var(--k-sans); font-size: 15.5px !important; font-weight: 700; letter-spacing: -0.005em;
  color: #fff; text-align: center; cursor: pointer;
  background: var(--k-blue);
  border: 1px solid transparent; border-radius: var(--k-r-sm);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 18px -8px rgba(27,13,174,.55), var(--k-shadow-sm);
  transition: background-color .18s, box-shadow .22s var(--k-ease), transform .18s var(--k-ease);
  -webkit-appearance: none; appearance: none;
}
html.subPage body.csc-auth .loginForm__oidcButton .button { line-height: 50px; text-decoration: none; }
html.subPage body.csc-auth .loginForm .button:hover {
  background: var(--k-blue-dark); transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 14px 26px -10px rgba(10,6,96,.6), var(--k-shadow-sm);
}
html.subPage body.csc-auth .loginForm .button:active { transform: translateY(1px); box-shadow: var(--k-shadow-sm); transition-duration: .05s; }
html.subPage body.csc-auth .loginForm .button:focus { outline: 0; border-color: transparent; }
html.subPage body.csc-auth .loginForm .button:focus-visible { box-shadow: var(--k-ring), 0 8px 18px -8px rgba(27,13,174,.55); }
html.subPage body.csc-auth .loginForm .button:disabled { cursor: progress; background: var(--k-blue-dark); transform: none; }
/* Seta que avança no hover (pseudo no <p>, porque <input> não tem ::after). */
html.subPage body.csc-auth .loginForm__submit > p::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  pointer-events: none; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .75; transition: transform .25s var(--k-ease), opacity .2s;
}
html.subPage body.csc-auth .loginForm__submit > p:hover::after { transform: translateX(4px); opacity: 1; }
/* Envio em andamento: o compasso corre sob o botão. */
html.subPage body.csc-auth.csc-submitting .loginForm__submit > p::after { opacity: 0; }
html.subPage body.csc-auth .loginForm__submit > p::before {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -8px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--k-blue-dark) 0 33.34%, var(--k-blue-light) 33.34% 66.67%, var(--k-acc) 66.67% 100%);
  background-size: 300% 100%;
  opacity: 0; transform: scaleX(.2); transition: opacity .2s, transform .4s var(--k-ease);
}
html.subPage body.csc-auth.csc-submitting .loginForm__submit > p::before {
  opacity: 1; transform: scaleX(1); animation: csc-l-run 1.1s linear infinite;
}

/* OIDC (se habilitado no postal.yml) */
html.subPage body.csc-auth .loginForm__oidcButton { margin-bottom: 4px; }
html.subPage body.csc-auth .loginForm__divider { margin: 24px 0 16px; border-top: 1px solid var(--k-g200); }
html.subPage body.csc-auth .loginForm__localTitle { font-size: 13px; color: var(--k-g500); margin-bottom: 16px; }

/* Mensagens do servidor */
html.subPage body.csc-auth .flashMessage,
html.subPage body.csc-auth .errorExplanation {
  position: relative; margin: 0 auto 22px; padding: 12px 14px 12px 42px;
  font-size: 14px; line-height: 1.45; font-weight: 500;
  background: var(--k-danger-bg); color: var(--k-danger);
  border: 1px solid var(--k-danger-border); border-radius: var(--k-r-sm);
  box-shadow: none;
}
html.subPage body.csc-auth .flashMessage--notice {
  background: var(--k-success-bg); color: var(--k-success); border-color: var(--k-success-border);
}
html.subPage body.csc-auth .flashMessage::before,
html.subPage body.csc-auth .errorExplanation::before {
  content: ''; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}
html.subPage body.csc-auth .flashMessage--notice::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16.5 9.5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16.5 9.5'/%3E%3C/svg%3E");
}
html.subPage body.csc-auth .flashMessage p { margin: 0; }
html.subPage body.csc-auth .errorExplanation ul li { list-style: none; margin: 0; }
html.subPage body.csc-auth .errorExplanation h2,
html.subPage body.csc-auth .errorExplanation p { display: none; }
html.subPage body.csc-auth.csc-ready .flashMessage--alert,
html.subPage body.csc-auth.csc-ready .errorExplanation { animation: csc-l-shake .5s var(--k-ease) .55s both; }

html.subPage body.csc-auth .csc-panel__foot {
  margin-top: auto; padding-top: 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--k-g400); font-weight: 500;
}
html.subPage body.csc-auth .csc-panel__foot .csc-mono { font-size: 11.5px; color: var(--k-g400); }

/* Barra de progresso do Turbolinks na identidade */
.turbolinks-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #0A0660 0 33.34%, #4B3BE0 33.34% 66.67%, #00D2FF 66.67% 100%);
}

/* ═════════════ Movimento de entrada ═════════════ */
html.subPage body.csc-auth .csc-in {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--k-ease), transform .8s var(--k-ease);
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
html.subPage body.csc-auth .subPageBox .csc-in { transition-delay: calc(var(--i, 0) * 60ms + 260ms); }
html.subPage body.csc-auth.csc-ready .csc-in { opacity: 1; transform: none; }
html.subPage body.csc-auth .csc-hero__title span {
  clip-path: inset(0 0 100% 0); transform: translateY(.25em);
  transition: clip-path .9s var(--k-ease), transform .9s var(--k-ease);
}
html.subPage body.csc-auth .csc-hero__title span + span { transition-delay: .12s; }
html.subPage body.csc-auth.csc-ready .csc-hero__title span { clip-path: inset(-0.1em -0.1em -0.2em -0.1em); transform: none; transition-delay: .22s; }
html.subPage body.csc-auth.csc-ready .csc-hero__title span + span { transition-delay: .34s; }
html.subPage body.csc-auth .subPageBox { opacity: 0; transform: translateX(24px); transition: opacity .6s var(--k-ease) .1s, transform .8s var(--k-ease) .1s; }
html.subPage body.csc-auth.csc-ready .subPageBox { opacity: 1; transform: none; }
html.subPage body.csc-auth .subPageBox::before { transform: scaleX(0); transition: transform 1.1s var(--k-ease) .35s; }
html.subPage body.csc-auth.csc-ready .subPageBox::before { transform: scaleX(1); }

@keyframes csc-l-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,210,255,.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(0,210,255,0); }
}
@keyframes csc-l-blink { 50% { opacity: 0; } }
@keyframes csc-l-run { from { background-position: 0 0; } to { background-position: -150% 0; } }
@keyframes csc-l-shake {
  0% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } 100% { transform: translateX(0); }
}

/* ═════════════ Responsivo ═════════════ */
@media (max-width: 1100px) {
  html.subPage body.csc-auth .csc-envelope { display: none; }
}
@media (max-width: 768px) {
  html.subPage body.csc-auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  html.subPage body.csc-auth .csc-hero {
    grid-column: 1; grid-row: 1; min-height: 0; gap: 28px;
    padding: 22px 20px 56px;
  }
  html.subPage body.csc-auth .csc-hero::after {
    background: linear-gradient(180deg, rgba(244,246,251,0) 0%, rgba(244,246,251,0) 55%, rgba(244,246,251,.8) 100%);
  }
  html.subPage body.csc-auth .csc-hero__title { font-size: clamp(38px, 10.5vw, 52px); }
  html.subPage body.csc-auth .csc-hero__scene { --csc-scene-shift-x: .3; --csc-scene-shift-y: .09; --csc-scene-scale: .48; }
  html.subPage body.csc-auth .csc-eyebrow { display: none; }
  html.subPage body.csc-auth .csc-hero__title { max-width: 62%; }
  html.subPage body.csc-auth .csc-hero__lede { max-width: 30em; }
  html.subPage body.csc-auth .csc-hero__lede { margin-top: 14px; font-size: 14.5px; }
  html.subPage body.csc-auth .csc-eyebrow { margin-bottom: 14px; }
  html.subPage body.csc-auth .csc-hero__product { font-size: 11.5px; }
  html.subPage body.csc-auth .subPageBox {
    grid-column: 1; grid-row: 2;
    margin-top: -28px; padding: 30px 20px 24px;
    border-left: 0; border-radius: var(--k-r-lg) var(--k-r-lg) 0 0;
    box-shadow: 0 -18px 40px -24px rgba(10,6,60,.22);
    transform: translateY(24px);
  }
  html.subPage body.csc-auth .subPageBox::before { left: 24px; right: 24px; border-radius: 0 0 3px 3px; }
  html.subPage body.csc-auth .subPageBox > * { max-width: 460px; }
  html.subPage body.csc-auth .csc-panel__eyebrow { margin-top: 0; }
  html.subPage body.csc-auth .subPageBox__title { font-size: 30px; }
  html.subPage body.csc-auth .csc-panel__lede,
  html.subPage body.csc-auth .subPageBox__text { margin-bottom: 22px; font-size: 14.5px; }
  html.subPage body.csc-auth .csc-panel__foot { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html.subPage body.csc-auth .csc-in,
  html.subPage body.csc-auth .subPageBox,
  html.subPage body.csc-auth .subPageBox::before,
  html.subPage body.csc-auth .csc-hero__title span,
  html.subPage body.csc-auth .csc-hero__scene {
    transition: none !important; transform: none !important; opacity: 1; clip-path: none !important;
  }
  html.subPage body.csc-auth .csc-pulse,
  html.subPage body.csc-auth .csc-caret,
  html.subPage body.csc-auth .flashMessage,
  html.subPage body.csc-auth .errorExplanation,
  html.subPage body.csc-auth .loginForm__submit > p::before { animation: none !important; }
  html.subPage body.csc-auth .loginForm .button:hover { transform: none; }
}
