/* =====================================================================
   Telas de acesso (login, recuperar/redefinir senha, conta inativa)
   Tema claro. Esquerda: arte + frase do serviço. Direita: formulário.
   Não depende de Bootstrap.
   ===================================================================== */

:root {
  --a-bg: #f3f6fc;
  --a-card: #ffffff;
  --a-ink: #1a2860;
  --a-muted: #5b6b8a;
  --a-line: #dde5f2;
  --a-field: #f7f9fd;
  --a-navy: #203078;
  --a-blue: #0048a0;
  --a-teal: #3878c0; /* azul claro do logo (antes era verde) */
  --a-danger: #d64545;
  --a-radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body.auth-body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--a-ink);
  background: var(--a-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ───────── estrutura: 2 colunas (1 coluna no celular) ───────── */
.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}
@media (max-width: 959px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

/* ═════════ lado esquerdo: arte ═════════ */
.auth-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(28px, 5vh, 56px) clamp(32px, 4.5vw, 72px);
  color: var(--a-ink);
  background: linear-gradient(155deg, #e6efff 0%, #eef4ff 42%, #dde9fb 100%);
}
.art-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; pointer-events: none; }
.art-blob.b1 { width: 46vmin; height: 46vmin; left: -10vmin; top: -12vmin; background: #c8d9f5; animation: blobA 24s ease-in-out infinite alternate; }
.art-blob.b2 { width: 50vmin; height: 50vmin; right: -14vmin; bottom: -16vmin; background: #c3d6f3; animation: blobB 28s ease-in-out infinite alternate; }
@keyframes blobA { to { transform: translate3d(6vmin, 5vmin, 0) scale(1.1); } }
@keyframes blobB { to { transform: translate3d(-6vmin, -4vmin, 0) scale(1.08); } }

.art-top, .art-copy, .orbit { position: relative; z-index: 1; }
.art-logo { width: clamp(150px, 15vw, 210px); height: auto; display: block; }

.art-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: riseIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
.art-copy h2 span {
  background: linear-gradient(100deg, var(--a-navy), var(--a-blue) 55%, var(--a-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.art-copy p {
  margin: 0 0 18px; max-width: 34em; font-size: clamp(0.95rem, 1.15vw, 1.1rem); line-height: 1.55; color: var(--a-muted);
  animation: riseIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.22s both;
}
.art-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; animation: riseIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.34s both; }
.art-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid #dbe5f6; font-size: 0.85rem; font-weight: 700; color: #33466b;
  box-shadow: 0 4px 14px rgba(0, 72, 160, 0.08);
}
.art-chips li i { color: var(--a-blue); }
.art-chips li:nth-child(even) i { color: var(--a-teal); }

/* ───────── órbita: centro de comando com equipamentos girando ───────── */
.orbit {
  --size: min(560px, 52vh, 44vw);
  width: var(--size);
  aspect-ratio: 1;
  align-self: center;
  margin-top: auto;
  container-type: size;
  animation: riseIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}
.ring {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border-radius: 50%;
  border: 1.5px dashed #b9c9e8;
  animation: spin var(--dur, 40s) linear infinite;
}
.ring.r1 { --r: 22cqw; }
.ring.r2 { --r: 35cqw; }
.ring.r3 { --r: 48cqw; border-color: #c9d6ee; }

.sat {
  position: absolute; left: 50%; top: 50%;
  width: 12cqw; height: 12cqw; margin: -6cqw 0 0 -6cqw;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff; border: 1px solid #e0e8f7;
  box-shadow: 0 8px 22px rgba(0, 72, 160, 0.16);
  color: var(--a-blue);
  font-size: 4.8cqw;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
}
.ring.r2 .sat { color: var(--a-teal); box-shadow: 0 8px 22px rgba(56, 120, 192, 0.18); }
.ring.r3 .sat { width: 10cqw; height: 10cqw; margin: -5cqw 0 0 -5cqw; font-size: 4cqw; color: #6d86b8; }
/* o ícone gira ao contrário do anel, para ficar sempre em pé */
.sat i { animation: spin var(--dur, 40s) linear infinite reverse; }
.ring[style*='reverse'] .sat i { animation-direction: normal; }

.hub {
  position: absolute; left: 50%; top: 50%;
  width: 20cqw; height: 20cqw; margin: -10cqw 0 0 -10cqw;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff; font-size: 8.5cqw;
  background: linear-gradient(140deg, var(--a-navy), var(--a-blue) 60%, var(--a-teal));
  box-shadow: 0 14px 40px rgba(0, 72, 160, 0.4);
}
.hub .ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0, 72, 160, 0.4); animation: hubPing 3.2s ease-out infinite; }
.hub .ping.p2 { animation-delay: 1.6s; border-color: rgba(56, 120, 192, 0.4); }
@keyframes hubPing { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* celular/tablet: sem a arte (precisa vir depois da regra que define display:flex) */
@media (max-width: 959px) { .auth-art { display: none; } }

/* telas baixas: compacta a arte */
@media (max-height: 700px) { .art-copy p { display: none; } .orbit { --size: min(380px, 40vh, 38vw); } }

/* ═════════ lado direito: formulário ═════════ */
.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: #fff;
}
@media (max-width: 959px) {
  .auth-panel {
    background:
      radial-gradient(900px 600px at 10% -10%, #e4edff 0%, transparent 60%),
      radial-gradient(800px 560px at 100% 110%, #e1ebfa 0%, transparent 60%),
      var(--a-bg);
  }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 8px 6px 12px;
  animation: cardIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
/* no celular o formulário vira um cartão sobre o fundo claro */
@media (max-width: 959px) {
  .auth-card {
    max-width: 440px; padding: 32px 30px 26px; border-radius: var(--a-radius);
    background: var(--a-card); border: 1px solid #e6ecf7;
    box-shadow: 0 24px 60px rgba(31, 60, 120, 0.14), 0 2px 6px rgba(31, 60, 120, 0.06);
  }
}
@media (max-width: 480px) { .auth-card { padding: 26px 20px 22px; border-radius: 18px; } }
@media (max-width: 340px) { .auth-card { padding: 22px 14px 18px; } }

@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
[data-stagger] { animation: riseIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.12s + var(--i, 0) * 0.07s); }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ───────── marca e títulos ───────── */
.auth-brand { text-align: center; margin-bottom: 14px; }
.auth-brand img { width: 190px; max-width: 70%; height: auto; display: inline-block; }

/* linha de nós conectados + pacote de dados (rede IoT) */
.auth-pulse { display: block; width: 130px; height: 16px; margin: 10px auto 0; overflow: visible; }
.auth-pulse .net-line { stroke: #cfdaf0; stroke-width: 1.5; stroke-dasharray: 3 3; }
.auth-pulse .net-node { fill: #fff; stroke: var(--a-blue); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: nodePing 3.6s ease-in-out infinite; animation-delay: calc(var(--n) * 0.7s); }
.auth-pulse .net-packet { fill: var(--a-teal); filter: drop-shadow(0 0 3px rgba(56, 120, 192, 0.8)); animation: packet 3.6s linear infinite; }
@keyframes packet { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(114px); opacity: 0; } }
@keyframes nodePing { 0%, 100% { fill: #fff; transform: scale(1); } 8% { fill: var(--a-teal); transform: scale(1.35); } 20% { fill: #fff; transform: scale(1); } }

.auth-title { margin: 12px 0 4px; text-align: center; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; color: var(--a-ink); }
.auth-sub { margin: 0 0 22px; text-align: center; color: var(--a-muted); font-size: 0.95rem; line-height: 1.45; }

/* ───────── campos ───────── */
.field { position: relative; margin-bottom: 14px; }
.field input {
  width: 100%;
  height: 54px;
  padding: 20px 52px 6px 44px;
  border-radius: 14px;
  border: 1px solid var(--a-line);
  background: var(--a-field);
  color: var(--a-ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder { color: transparent; }
/* esconde os botões de "revelar/preencher senha" que alguns navegadores desenham por cima do campo */
.field input::-ms-reveal, .field input::-ms-clear { display: none; }
.field input::-webkit-credentials-auto-fill-button { visibility: hidden; pointer-events: none; position: absolute; right: 0; }
.field label {
  position: absolute; left: 44px; top: 17px;
  color: var(--a-muted); font-size: 0.95rem; pointer-events: none;
  transform-origin: left top; transition: transform 0.18s ease, color 0.18s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.78); }
.field input:focus + label { color: var(--a-blue); }
.field input:focus { border-color: var(--a-blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 72, 160, 0.14); }
.field .field-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8a99b8; font-size: 1rem; transition: color 0.2s; pointer-events: none; }
.field input:focus ~ .field-icon { color: var(--a-blue); }

/* olhinho de mostrar/ocultar senha (SVG, sempre visível) */
.field .toggle-pass {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 3;
  display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: transparent;
  color: #6f7f9f; cursor: pointer;
}
.field .toggle-pass[hidden] { display: none; }
.field .toggle-pass svg { display: block; width: 22px; height: 22px; }
.field .toggle-pass .ico-eye-off { display: none; }
.field .toggle-pass.is-shown .ico-eye { display: none; }
.field .toggle-pass.is-shown .ico-eye-off { display: block; }
.field .toggle-pass.is-shown { color: var(--a-blue); }
.field .toggle-pass:hover, .field .toggle-pass:focus-visible { color: var(--a-blue); background: #eef3ff; outline: none; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--a-ink); -webkit-box-shadow: 0 0 0 40px #eef4ff inset; caret-color: var(--a-ink); transition: background-color 9999s; }

/* ───────── checkbox, links, botões ───────── */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }

.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 0.9rem; color: var(--a-muted); user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c7d3ea; background: #fff; display: grid; place-items: center; transition: all 0.2s; }
.check .box i { font-size: 0.65rem; color: #fff; transform: scale(0); transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1); }
.check input:checked + .box { background: var(--a-blue); border-color: var(--a-blue); }
.check input:checked + .box i { transform: scale(1); }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(0, 72, 160, 0.2); }

.auth a { color: var(--a-blue); text-decoration: none; transition: color 0.2s; }
.auth a:hover, .auth a:focus-visible { color: #203078; text-decoration: underline; }
.link-sm { font-size: 0.9rem; font-weight: 600; }

.btn-auth {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 52px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1.02rem; letter-spacing: 0.02em; color: #fff;
  background: linear-gradient(100deg, var(--a-navy), var(--a-blue) 55%, var(--a-teal));
  background-size: 160% 100%;
  box-shadow: 0 10px 24px rgba(0, 72, 160, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.5s ease, opacity 0.2s;
  text-decoration: none;
}
.btn-auth::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-20deg); }
.btn-auth:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 72, 160, 0.36); background-position: 100% 0; }
.btn-auth:hover:not(:disabled)::after { animation: sheen 0.9s ease; }
.btn-auth:active:not(:disabled) { transform: translateY(0); }
.btn-auth:focus-visible { outline: 3px solid rgba(0, 72, 160, 0.4); outline-offset: 2px; }
.btn-auth:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
@keyframes sheen { to { left: 130%; } }
.btn-auth .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.btn-auth.is-loading .spin { display: inline-block; }
.btn-auth.is-loading { pointer-events: none; }
.auth a.btn-auth, .auth a.btn-auth:hover, .auth a.btn-auth:focus-visible { color: #fff; text-decoration: none; }

.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; color: var(--a-muted) !important; background: #f3f6fc; border: 1px solid var(--a-line); font-size: 0.9rem; }
.btn-ghost:hover { background: #e8eefb; color: var(--a-blue) !important; text-decoration: none !important; }

/* ───────── avisos ───────── */
.auth-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; border: 1px solid #f3c2c2; background: #fff1f1; color: #9b2c2c; }
.auth-alert ul { margin: 6px 0 0; padding-left: 18px; }
.auth-alert.is-warn { border-color: #f1dca0; background: #fff8e6; color: #7a5a06; }

/* ───────── recuperar senha: passos ───────── */
.steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 0.78rem; color: #8a99b8; }
.steps .st { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.72rem; border: 1.5px solid #cfd9ee; background: #fff; }
.steps .st.on { color: var(--a-ink); font-weight: 700; }
.steps .st.on .dot { background: var(--a-blue); border-color: var(--a-blue); color: #fff; }
.steps .bar { width: 22px; height: 2px; background: #dde5f2; border-radius: 2px; }
@media (max-width: 380px) { .steps .txt { display: none; } }

.captcha-wrap { display: flex; justify-content: center; margin: 4px 0 16px; min-height: 78px; }
.captcha-wrap .g-recaptcha { display: flex; justify-content: center; }

/* ───────── força da senha ───────── */
.strength { margin: -4px 0 14px; }
.strength .meter { display: flex; gap: 5px; }
.strength .meter span { flex: 1; height: 5px; border-radius: 4px; background: #e6ebf5; transition: background 0.25s; }
.strength[data-level='1'] .meter span:nth-child(-n+1) { background: #e85d5d; }
.strength[data-level='2'] .meter span:nth-child(-n+2) { background: #f2a93b; }
.strength[data-level='3'] .meter span:nth-child(-n+3) { background: #3878c0; }
.strength[data-level='4'] .meter span:nth-child(-n+4) { background: var(--a-teal); }
.strength .hint { margin-top: 6px; font-size: 0.8rem; color: var(--a-muted); min-height: 1.1em; }
.match { font-size: 0.82rem; margin: -6px 0 14px 2px; min-height: 1.1em; }
.match.ok { color: #0048a0; } .match.no { color: var(--a-danger); }

/* ───────── conta inativa ───────── */
.state-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; color: #e39a12; background: #fff6e0; border: 1px solid #f4dca0; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }

/* ───────── rodapé ───────── */
.auth-foot { margin-top: 26px; text-align: center; }
.auth-foot .by-logo { height: 30px; width: auto; display: inline-block; opacity: 0.9; }
.auth-help { margin-top: 14px; font-size: 0.85rem; text-align: center; color: var(--a-muted); }
.auth-help a { font-weight: 700; }

/* ───────── aviso de cookie ───────── */
.cookie-pop {
  position: fixed; z-index: 50; right: 20px; bottom: 20px; width: min(390px, calc(100vw - 24px));
  padding: 16px 16px 14px; border-radius: 16px;
  background: #fff; border: 1px solid #e3eaf7; color: var(--a-ink);
  box-shadow: 0 18px 46px rgba(31, 60, 120, 0.2);
  display: none;
}
.cookie-pop.show { display: block; animation: popIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.cookie-pop .ck-head { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 6px; }
.cookie-pop .ck-head i { color: #e39a12; font-size: 1.1rem; }
.cookie-pop p { margin: 0 0 12px; font-size: 0.86rem; line-height: 1.45; color: var(--a-muted); }
.cookie-pop .ck-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-pop button { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--a-line); font: inherit; font-weight: 700; font-size: 0.88rem; cursor: pointer; color: var(--a-ink); background: #f3f6fc; }
.cookie-pop button:hover { background: #e8eefb; }
.cookie-pop button.primary { border: 0; color: #fff; background: linear-gradient(100deg, var(--a-navy), var(--a-blue) 55%, var(--a-teal)); }
.cookie-pop button.primary:hover { filter: brightness(1.06); }
.cookie-pop button:focus-visible { outline: 3px solid rgba(0, 72, 160, 0.4); outline-offset: 2px; }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .cookie-pop { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cookie-pop .ck-actions button { flex: 1; }
}

/* ───────── acessibilidade: sem movimento ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .auth-pulse .net-packet { opacity: 0; }
}


/* ═════════ visual 2 (login): arte escura à esquerda, cartão sobre fundo claro à direita ═════════ */
.auth-art {
  color: #fff;
  background:
    radial-gradient(700px 500px at 85% 10%, rgba(80, 150, 255, 0.35), transparent 60%),
    linear-gradient(155deg, #101c5c 0%, #0a3585 55%, #0a55ad 100%);
}
.art-blob.b1 { background: #3d78d8; opacity: 0.35; }
.art-blob.b2 { background: #6aa6ff; opacity: 0.25; }
.art-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-weight: 800; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px); }
.art-badge i { color: #9cc7ff; }
.art-copy h2 { color: #fff; }
.art-copy h2 span { background: linear-gradient(100deg, #a9d0ff, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-copy p { color: rgba(255, 255, 255, 0.78); }
.art-chips li { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; box-shadow: none; backdrop-filter: blur(6px); }
.art-chips li i, .art-chips li:nth-child(even) i { color: #9cc7ff; }
.ring { border-color: rgba(255, 255, 255, 0.28); }
.ring.r3 { border-color: rgba(255, 255, 255, 0.18); }
.sat { background: rgba(255, 255, 255, 0.96); border-color: transparent; box-shadow: 0 10px 26px rgba(0, 10, 60, 0.35); }
.ring.r2 .sat { color: #3878c0; box-shadow: 0 10px 26px rgba(0, 10, 60, 0.35); }
.hub { color: #0a3a8c; background: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.15), 0 18px 50px rgba(0, 10, 60, 0.5); }
.hub .ping, .hub .ping.p2 { border-color: rgba(255, 255, 255, 0.55); }

.auth-panel {
  background:
    radial-gradient(800px 560px at 0% 0%, #e9f0ff 0%, transparent 60%),
    radial-gradient(700px 520px at 100% 100%, #e3edfb 0%, transparent 60%),
    #f5f8fe;
}
.auth-card {
  max-width: 440px; padding: 36px 36px 28px; border-radius: 24px;
  background: var(--a-card); border: 1px solid #e6ecf7;
  box-shadow: 0 30px 70px rgba(31, 60, 120, 0.14), 0 2px 8px rgba(31, 60, 120, 0.06);
}
.auth-brand img { width: 170px; }
.auth-title { font-size: 1.75rem; }
@media (max-width: 480px) { .auth-card { padding: 26px 20px 22px; border-radius: 18px; } }
@media (max-width: 340px) { .auth-card { padding: 22px 14px 18px; } }

/* ajustes: logo da nuvem, mais chips e órbita sempre dentro da tela */
.auth-art { height: 100vh; height: 100dvh; position: sticky; top: 0; }
.art-cloud { width: clamp(64px, 6vw, 88px); height: auto; display: block; filter: drop-shadow(0 8px 18px rgba(0, 10, 60, 0.35)); }
.art-chips { max-width: 40em; }
.orbit-wrap { position: relative; z-index: 1; flex: 1 1 0; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.orbit-wrap .orbit { --size: auto; width: auto; height: 100%; max-height: 520px; max-width: 100%; aspect-ratio: 1; margin: 0; align-self: auto; }
.orbit-wrap { overflow: visible; }
.orbit-wrap .orbit { max-height: 480px; }
.ring.r1 { --r: 19cqw; }
.ring.r2 { --r: 31cqw; }
.ring.r3 { --r: 42cqw; }
.art-cloud { width: clamp(76px, 7vw, 104px); }

/* destaque do objetivo + botões das lojas */
.art-copy h2 { font-size: clamp(2.1rem, 3.6vw, 3.5rem); }
.art-copy p { font-size: clamp(1rem, 1.25vw, 1.2rem); max-width: 32em; margin-bottom: 26px; }
.art-apps { animation: riseIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.34s both; }
.art-apps-t { display: block; margin-bottom: 10px; font-size: 0.85rem; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.art-apps-b { display: flex; flex-wrap: wrap; gap: 10px; }
.auth .app-btn { display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 9px 14px; border-radius: 12px; color: #fff; text-decoration: none;
  background: rgba(0, 10, 50, 0.45); border: 1px solid rgba(255, 255, 255, 0.3); transition: transform 0.18s, background 0.2s, border-color 0.2s; }
.auth .app-btn:hover, .auth .app-btn:focus-visible { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }
.app-btn i { font-size: 1.7rem; }
.app-btn span { display: flex; flex-direction: column; font-weight: 800; font-size: 1.02rem; line-height: 1.1; }
.app-btn small { font-size: 0.68rem; font-weight: 600; opacity: 0.8; }

/* download do app: no celular a arte some, então os links vão para o rodapé */
.foot-apps { display: none; margin-bottom: 18px; }
.foot-apps span { display: block; margin-bottom: 8px; font-size: 0.82rem; font-weight: 700; color: var(--a-muted); }
.foot-apps div { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.auth .app-mini { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 800; color: #fff; background: linear-gradient(100deg, var(--a-navy), var(--a-blue)); text-decoration: none; }
.auth .app-mini:hover, .auth .app-mini:focus-visible { color: #fff; text-decoration: none; filter: brightness(1.1); }
.app-mini i { font-size: 1.15rem; }
@media (max-width: 959px) { .foot-apps { display: block; } }

/* celular: formulário compacto, cabendo na tela sem rolar */
@media (max-width: 959px) {
  .auth-panel { justify-content: flex-start; padding: 14px 12px 12px; }
  .auth-card { padding: 18px 16px 14px; border-radius: 18px; margin-top: 4px; }
  .auth-brand { margin-bottom: 6px; }
  .auth-brand img { width: 130px; }
  .auth-pulse { display: none; }
  .auth-title { font-size: 1.3rem; margin: 6px 0 2px; }
  .auth-sub { font-size: 0.85rem; margin-bottom: 12px; }
  .field { margin-bottom: 10px; }
  .field input { height: 48px; padding-top: 18px; border-radius: 12px; }
  .field label { top: 14px; }
  .row-between { margin: 2px 0 10px; }
  .captcha-wrap { margin: 2px 0 10px; min-height: 0; }
  .btn-auth { height: 48px; }
  .auth-help { margin-top: 10px; }
  .foot-apps { margin-bottom: 10px; }
  .auth-foot { margin-top: 14px; }
  .auth-foot .by-logo { height: 24px; }
}
@media (max-width: 480px) { .auth-card { padding: 16px 14px 12px; } }

/* reCAPTCHA tem 304x78 fixo: o JS reduz para caber no cartão (auth.js) */
.auth-card, .auth-card form { min-width: 0; }
.auth-panel { min-width: 0; }

/* ═════════ TEMA 2 (sóbrio): cor sólida, sem bolhas/degradês, cantos menores. Para voltar ao anterior, apague até o fim do arquivo. ═════════ */
:root { --a-navy: #1b2a49; --a-blue: #1d4e8f; --a-teal: #1d4e8f; --a-ink: #1d2531; --a-muted: #6c7686; --a-line: #dde1e8; --a-field: #f7f8fa; --a-radius: 10px; }
body.auth-body { background: #f3f4f6; }
.auth-art { background: #172033; }
.art-blob { display: none; }
.art-copy h2 span { background: none; color: #9fbbe0; -webkit-text-fill-color: #9fbbe0; }
.ring { border-style: solid; border-color: rgba(255, 255, 255, 0.14); }
.hub { box-shadow: none; }
.sat { box-shadow: none; }
.auth-panel, .auth-panel::before { background: #f3f4f6; }
.auth-card { border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06); }
.field input { border-radius: 6px; }
.btn-auth, .app-mini, .cookie-pop button.primary { background: var(--a-blue) !important; border-radius: 6px; box-shadow: none; }
.btn-auth:hover:not(:disabled) { background: var(--a-navy) !important; transform: none; box-shadow: none; }
.btn-auth::after { display: none; }
.auth-pulse { display: none; }
.auth .app-btn { border-radius: 6px; }
.art-cloud { filter: none; }
.cookie-pop { border-radius: 10px; }

.art-logo-branca { width: clamp(170px, 17vw, 240px); height: auto; display: block; }
/* no computador o logo já está na arte à esquerda: sem logo repetido no formulário (no celular a arte some e o logo fica) */
@media (min-width: 960px) { .auth-card .auth-brand { display: none; } .auth-card .auth-title { margin-top: 0; } }
