/* auth.css — visual das telas de acesso da ZiemPay (/auth/, /auth/cadastro/, /auth/esqueci-senha/).
   Base: as regras "auth-*" do login anterior (export Next guardado em _arquivo/auth-next-export/),
   legíveis e sem as partes que não existem mais (contas salvas, gaveta de código).
   Acréscimos marcados com "novo": senha com mostrar/ocultar, select, aceite, erros por campo, OTP de 6 caixas. */

/* ---------- Fontes (as mesmas do login anterior, em woff2 de /fonts) ---------- */
@font-face { font-family: SFProDisplay; src: url(/fonts/SFPRODISPLAYREGULAR.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: SFProDisplay; src: url(/fonts/SFPRODISPLAYMEDIUM.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: SFProDisplay; src: url(/fonts/SFPRODISPLAYBOLD.woff2) format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: GoodTimes; src: url(/fonts/GoodTimes.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; -webkit-tap-highlight-color: transparent; background: #000; color-scheme: dark; }
body { margin: 0; padding: 0; background: #000; color: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* tela neutra enquanto a sessão é verificada */
.auth-boot { min-height: 100svh; display: grid; place-items: center; background: #000; }
.auth-boot span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #ffffff22; border-top-color: #fff; animation: auth-studio-spin 1s linear infinite; }

.auth-studio {
  --auth-ink: #fff;
  --auth-muted: #a3a3a3;
  --auth-line: #262626;
  --auth-paper: #000;
  --auth-soft: #080808;
  color: var(--auth-ink);
  color-scheme: dark;
  font-family: SFProDisplay, Arial, sans-serif;
  background: #000;
  min-height: 100svh;
  display: flex;
}
.auth-shell {
  background: #000;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%;
  max-width: 1680px;
  min-height: 100svh;
  margin: auto;
}

/* ---------- Coluna da marca (cena 3D com órbitas) ---------- */
.auth-story { contain: paint; display: flex; flex-direction: column; min-width: 0; padding: 42px 48px 32px; position: relative; overflow: hidden; }
.auth-brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; width: max-content; }
.auth-brand img { filter: invert(); object-fit: contain; width: 28px; height: 20px; }
.auth-brand span { letter-spacing: -.06em; font: 19px GoodTimes, Arial, sans-serif; }
.auth-identity { isolation: isolate; display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; padding: 25px 0 65px; position: relative; }
.auth-scene { aspect-ratio: 1; perspective: 1000px; flex-shrink: 0; width: min(100% + 50px, 480px); position: relative; }
.auth-scene-depth { transform-style: preserve-3d; position: absolute; inset: 0; }
.auth-scene-aura { background: radial-gradient(#ffffff10, #ffffff04 45%, #0000 70%); border-radius: 50%; animation: 8s ease-in-out infinite auth-aura; position: absolute; inset: 9%; }
.auth-scene-glow { filter: blur(24px); background: radial-gradient(circle, #ffffff29, #ffffff0d 40%, #0000 70%); border-radius: 50%; animation: 3s ease-in-out infinite auth-luminous-breathe; position: absolute; inset: 20%; }
.auth-orbit { transform-style: preserve-3d; border: 1px solid #ffffff30; border-radius: 50%; position: absolute; inset: 8%; box-shadow: inset 0 0 1px #ffffff40, 0 0 1px #ffffff40; }
.auth-orbit-one { transform: rotateX(63deg) rotateY(-22deg) rotate(-28deg); }
.auth-orbit-two { border-color: #ffffff16; inset: 14%; transform: rotateX(68deg) rotateY(36deg) rotate(38deg); }
.auth-orbit-three { border-color: #ffffff14; inset: 2%; transform: rotateX(28deg) rotateY(63deg) rotate(-18deg); }
.auth-orbit > span, .auth-orbit > i { border-radius: inherit; animation: 12s linear infinite auth-orbit-travel; position: absolute; inset: -1px; }
.auth-orbit > span {
  background: conic-gradient(#0000 0deg 260deg, #ffffff08 280deg, #fffd 355deg, #0000 360deg);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, #0000 calc(100% - 2px), #000 calc(100% - 1px));
}
.auth-orbit > i::before { content: ""; background: #fff; border-radius: 50%; width: 5px; height: 5px; position: absolute; top: -1px; left: calc(50% - 2px); box-shadow: 0 0 9px 3px #fff7, 0 0 24px 5px #fff3; }
.auth-orbit-two > span, .auth-orbit-two > i { animation-duration: 17s; animation-direction: reverse; animation-delay: -6s; }
.auth-orbit-three > span, .auth-orbit-three > i { animation-duration: 23s; animation-delay: -11s; }
.auth-core { transform-style: preserve-3d; border-radius: 50%; animation: 7s ease-in-out infinite auth-core-float; position: absolute; inset: 25%; }
.auth-core-glass {
  border-radius: inherit;
  background: radial-gradient(at 27% 12%, #ffffff18, #0000 50%), radial-gradient(at 70% 100%, #ffffff0a, #000 60%);
  border: 1px solid #ffffff16; position: absolute; inset: 0;
  box-shadow: inset 0 0 25px #ffffff08, inset 0 1px 2px #fff7, inset 0 -1px 2px #fff4, 0 18px 50px #000;
}
.auth-core-rim {
  border-radius: inherit;
  background: conic-gradient(#fff0, #ffffff05 12%, #fff 23%, #ffffff05 30%, #0000 55%, #fff 76%, #0000 85%);
  animation: 18s linear infinite auth-orbit-travel; position: absolute; inset: -2px;
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, #0000 calc(100% - 2px), #000 calc(100% - 1px));
}
.auth-core-mark {
  background: linear-gradient(120deg, #777 0%, #fff 23% 38%, #aaa 50%, #fff 62% 78%, #888 100%) 0 0 / 250% 100%;
  animation: 8s ease-in-out infinite auth-metal-light; position: absolute; inset: 32% 19%; transform: translateZ(24px);
  -webkit-mask: url(ziempay-mark.png) 50% / contain no-repeat; mask: url(ziempay-mark.png) 50% / contain no-repeat;
}
.auth-mark-glow { filter: blur(15px); animation: 3s ease-in-out infinite auth-luminous-breathe; position: absolute; inset: 26% 15%; transform: translateZ(22px); }
.auth-mark-glow > div { background: #ffffff70; width: 100%; height: 100%; -webkit-mask: url(ziempay-mark.png) 50% / contain no-repeat; mask: url(ziempay-mark.png) 50% / contain no-repeat; }
.auth-core-reflection { border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, #0000 32%, #ffffff12 48%, #0000 58%); animation: 9s ease-in-out infinite auth-reflection; position: absolute; inset: 3%; }
.auth-scene-floor { filter: blur(8px); background: radial-gradient(#ffffff18, #0000 70%); border-radius: 50%; width: 60%; height: 9%; animation: 7s ease-in-out infinite reverse auth-aura; position: absolute; bottom: 6%; left: 20%; }
.auth-identity-caption { text-align: center; margin-top: 8px; position: relative; animation: .9s ease-out .15s backwards auth-enter; }
.auth-identity h2 { letter-spacing: -.06em; margin: 0; font: clamp(42px, 4.6vw, 68px) / 1 GoodTimes, Arial, sans-serif; }
.auth-phrase { display: flex; justify-content: center; align-items: center; gap: 15px; min-height: 50px; margin-top: 22px; animation: 6.5s ease-in-out infinite auth-phrase-cycle; }
.auth-phrase-icon { perspective: 500px; background: linear-gradient(140deg, #ffffff0c, #000); border: 1px solid #ffffff26; border-radius: 15px; flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; position: relative; box-shadow: inset 0 1px #ffffff16; }
.auth-phrase-icon > svg { z-index: 1; color: #fff; animation: 6.5s cubic-bezier(.22, 1, .36, 1) infinite auth-phrase-icon-enter; position: relative; }
.auth-phrase-glow { border-radius: inherit; filter: blur(16px); background: #ffffff42; animation: 3s ease-in-out infinite auth-luminous-breathe; position: absolute; inset: 1px; }
.auth-phrase-text { letter-spacing: -.025em; color: #eee; font-size: 16px; font-weight: 400; }
.auth-phrase-indicators { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.auth-phrase-indicators span { background: #ffffff26; border-radius: 99px; width: 4px; height: 3px; transition: width .4s, background .4s; }
.auth-phrase-indicators span[data-active="true"] { background: #ffffffb3; width: 21px; box-shadow: 0 0 8px #ffffff36; }
.auth-motion-toggle { color: #999; background: #000; border: 1px solid #ffffff20; border-radius: 50%; display: grid; place-items: center; width: 30px; height: 30px; transition: color .2s, border-color .2s; position: absolute; bottom: 22px; }
.auth-motion-toggle:hover { color: #fff; border-color: #ffffff80; }
.auth-identity[data-motion="paused"] *, .auth-identity[data-motion="paused"] ::before { animation-play-state: paused; }
.auth-identity[data-motion="paused"] .auth-phrase, .auth-identity[data-motion="paused"] .auth-phrase-icon > svg { opacity: 1; filter: none; animation: none; transform: none; }
.auth-story-footer { color: #999; display: flex; flex-direction: column; gap: 10px; font-size: 11px; }
.auth-story-footer span:first-child { letter-spacing: .15em; color: #777; font-size: 9px; }
.auth-story-footer span:last-child { word-spacing: 8px; }

/* ---------- Coluna do formulário ---------- */
.auth-entry { isolation: isolate; border-left: 1px solid #ffffff12; display: flex; flex-direction: column; min-width: 0; padding: 40px clamp(28px, 3.6vw, 56px) 30px; position: relative; transform: translateZ(0); }
.auth-entry-top { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 420px; margin-inline: auto; }
.auth-access-label { color: #bdbdbd; background: linear-gradient(145deg, #ffffff06, #0000); border: 1px solid #ffffff18; border-radius: 99px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; font-size: 10px; }
.auth-step { letter-spacing: .08em; color: #999; display: flex; align-items: center; gap: 10px; font-size: 10px; font-variant-numeric: tabular-nums; }
.auth-step-track { display: flex; gap: 4px; }
.auth-step-track i { background: #ffffff26; border-radius: 3px; width: 16px; height: 2px; display: block; }
.auth-step-track i[data-on="true"] { background: #fff; box-shadow: 0 0 7px #ffffff26; }

.auth-form-wrap {
  isolation: isolate;
  background: radial-gradient(at 0 0, #ffffff0d, #0000 52%), radial-gradient(at 100% 100%, #ffffff05, #0000 45%), #040404;
  border: 1px solid #ffffff0d; border-radius: 32px;
  width: 100%; max-width: 480px; margin: auto; padding: 36px; position: relative;
  box-shadow: inset 0 1px #ffffff0a, inset 0 -1px #ffffff04, 0 24px 80px #0008;
}
.auth-form-wrap::before {
  content: ""; border-radius: inherit; pointer-events: none; padding: 1px; position: absolute; inset: -1px;
  background: linear-gradient(135deg, #ffffff70, #ffffff12 24%, #ffffff08 65%, #ffffff36);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
}
.auth-form-wrap::after { content: ""; pointer-events: none; background: linear-gradient(90deg, #0000, #fff9, #0000); width: 46%; height: 1px; position: absolute; top: -1px; left: 14%; box-shadow: 0 -3px 22px 1px #ffffff10; }

.auth-form-heading { animation: .6s ease-out .1s backwards auth-enter; }
.auth-entry-eyebrow { letter-spacing: .18em; color: #aaa; font-size: 9px; font-weight: 500; display: block; text-transform: uppercase; }
.auth-form-heading h1 { letter-spacing: -.06em; text-wrap: balance; margin: 12px 0; font-size: clamp(34px, 3.15vw, 44px); font-weight: 500; line-height: 1.08; }
.auth-form-heading > p { color: #a3a3a3; max-width: 340px; margin-bottom: 27px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.auth-form-heading > p strong { color: #fff; font-weight: 500; }

.auth-form { display: grid; gap: 12px; }

/* campo com ícone e rótulo pequeno (o "auth-email-field" do login anterior serve para todos os campos) */
.auth-field-wrap { min-width: 0; }
.auth-email-field {
  background: linear-gradient(115deg, #ffffff08, #0000 55%), #0008;
  border: 1px solid #ffffff26; border-radius: 18px;
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  transition: border-color .2s, box-shadow .2s, opacity .2s;
  box-shadow: inset 0 1px 1px #ffffff0c, inset 0 -1px #ffffff04, 0 3px 12px #0003;
}
.auth-email-field > svg { color: #b0b0b0; flex-shrink: 0; }
.auth-email-field:focus-within { border-color: #fffa; box-shadow: inset 0 1px #ffffff0a, 0 0 0 3px #ffffff05, 0 0 28px #ffffff05; }
.auth-email-field.is-invalid { border-color: #b54040; }
.auth-email-field.is-disabled { opacity: .5; }
.auth-email-content { flex: 1; min-width: 0; }
.auth-email-content label, .auth-email-content .auth-field-label { color: #bdbdbd; margin-bottom: 1px; font-size: 10px; font-weight: 500; line-height: 1.5; display: block; }
.auth-email-field input { color: #fff; width: 100%; min-width: 0; height: 26px; box-shadow: none; background: 0 0; border: 0; outline: none; padding: 0; font-size: 16px; }
.auth-email-field input::placeholder { color: #777; }
.auth-email-field input:disabled { cursor: not-allowed; }
.auth-email-field input:focus-visible { outline: 0; }
/* novo: botão do olho (mostrar/ocultar senha) */
.auth-eye { color: #8a8a8a; border-radius: 99px; display: grid; place-items: center; width: 32px; height: 32px; margin-right: -8px; flex-shrink: 0; transition: color .2s, background .2s; }
.auth-eye:hover { color: #fff; background: #ffffff0c; }
/* novo: select pessoa física/jurídica */
.auth-select { position: relative; }
.auth-select-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; height: 26px; font-size: 16px; color: #fff; }
.auth-select-button[data-empty="true"] { color: #777; }
.auth-select-button svg { color: #8a8a8a; flex-shrink: 0; transition: transform .2s; }
.auth-select-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.auth-select-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 4px; border: 1px solid #ffffff1a; border-radius: 16px; background: #0b0b0b; box-shadow: 0 18px 50px #000c; }
.auth-select-list button { width: 100%; text-align: left; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #ddd; display: flex; justify-content: space-between; align-items: center; }
.auth-select-list button:hover, .auth-select-list button:focus-visible, .auth-select-list button[aria-selected="true"] { background: #ffffff0d; color: #fff; }
.auth-select-backdrop { position: fixed; inset: 0; z-index: 10; cursor: default; }

/* novo: erro do campo */
.auth-field-error { color: #ff8f85; margin: 6px 6px 0; font-size: 11.5px; line-height: 1.5; }
.auth-input-hint { color: #999; margin: 2px 4px 0; font-size: 11px; line-height: 1.6; }

/* novo: linha de link à direita (Esqueceu sua senha?) */
.auth-row-end { display: flex; justify-content: flex-end; padding: 0 4px; }
.auth-link { color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; transition: opacity .2s; }
.auth-link:hover { opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:disabled { opacity: .45; cursor: not-allowed; text-decoration: none; }
.auth-text-button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #c8c8c8; font-size: 13px; font-weight: 500; transition: color .2s; }
.auth-text-button:hover:not(:disabled) { color: #fff; }
.auth-text-button:disabled { opacity: .5; cursor: not-allowed; }

/* novo: aceite dos termos */
.auth-check { display: flex; align-items: flex-start; gap: 12px; margin: 6px 4px 4px; font-size: 12.5px; line-height: 1.55; color: #bdbdbd; cursor: pointer; }
.auth-check input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1px solid #ffffff40; background: #0d0d0d; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.auth-check input::before { content: ""; width: 10px; height: 6px; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.auth-check input:checked { background: #fff; border-color: #fff; }
.auth-check input:checked::before { opacity: 1; }
.auth-check.is-invalid input { border-color: #b54040; }
.auth-check a { color: #fff; text-underline-offset: 2px; }

/* novo: regras da senha */
.auth-rules { list-style: none; margin: 2px 4px 2px; padding: 0; display: grid; gap: 4px; font-size: 11.5px; color: #8a8a8a; }
.auth-rules li { display: flex; align-items: center; gap: 7px; }
.auth-rules li[data-ok="true"] { color: #d6d6d6; }
.auth-rules li svg { flex-shrink: 0; }

/* botão principal (pílula com orbe) */
.auth-primary {
  color: #000; background: #fff; border: 1px solid #fff; border-radius: 12px;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 12px 52px; margin-top: 8px;
  font-size: 14px; font-weight: 600; transition: background .2s, transform .2s; position: relative;
}
.auth-primary:hover:not(:disabled) { background: #e8e8e8; transform: translateY(-1px); }
.auth-primary:active:not(:disabled) { transform: translateY(0); }
.auth-primary:disabled { opacity: .5; cursor: not-allowed; }
.auth-primary[aria-busy="true"] { cursor: wait; }
.auth-button-orb { display: grid; place-items: center; position: absolute; right: 18px; }
.auth-entry .auth-primary {
  background: radial-gradient(at 50% 0, #fff 25%, #0000 75%), linear-gradient(175deg, #f8f8f8 45%, #d5d5d5);
  border-color: #ffffffa0; border-radius: 99px; min-height: 58px; font-weight: 600;
  box-shadow: inset 0 2px 2px #fff, inset 0 -2px 3px #00000015, 0 3px 8px #0008, 0 0 24px #ffffff08;
}
.auth-entry .auth-primary:hover:not(:disabled) { background: #fff; box-shadow: inset 0 1px 1px #fff, 0 0 30px #ffffff18; }
.auth-entry .auth-button-orb {
  color: #fff; background: radial-gradient(at 25% 10%, #fff5, #0000 55%), linear-gradient(135deg, #292929, #000 70%);
  border: 1px solid #888; border-radius: 50%; width: 42px; height: 42px; right: 7px;
  transition: transform .25s, box-shadow .25s;
  box-shadow: inset 0 0 2px 1px #fff8, inset 0 -2px 4px #000, 0 1px 4px #0005;
}
.auth-entry .auth-primary:hover:not(:disabled) .auth-button-orb { transform: rotate(-35deg); box-shadow: inset 0 0 3px 1px #fffc, 0 1px 6px #0005; }

.auth-error { color: #ffb4ac; background: #1c0909; border: 1px solid #532020; border-radius: 12px; display: flex; align-items: start; gap: 7px; margin-top: 4px; padding: 11px 13px; font-size: 12px; line-height: 1.6; }
.auth-error > svg { flex-shrink: 0; margin-top: 2px; }
/* novo: aviso neutro (cadastro concluído, senha alterada, código reenviado) */
.auth-notice { color: #e5e5e5; background: #0e0e0e; border: 1px solid #ffffff1f; border-radius: 12px; display: flex; align-items: start; gap: 8px; margin-bottom: 18px; padding: 11px 13px; font-size: 12px; line-height: 1.6; }
.auth-notice > svg { flex-shrink: 0; margin-top: 2px; }

.auth-privacy { color: #999; display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 19px; font-size: 11px; line-height: 1.5; text-align: center; }
.auth-switch { margin-top: 18px; text-align: center; color: #a3a3a3; font-size: 13px; }
.auth-switch a { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: #ffffff4d; text-underline-offset: 3px; }
.auth-switch a:hover { text-decoration-color: #fff; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; color: var(--auth-muted); font-size: 12px; padding: 6px 8px 6px 2px; margin: -6px 0 14px -2px; }
.auth-back:hover:not(:disabled) { color: #fff; }
.auth-back:disabled { opacity: .4; cursor: wait; }

.auth-entry-footer { color: var(--auth-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 8px; font-size: 11px; }
.auth-entry-footer a { color: var(--auth-ink); display: inline-flex; align-items: center; gap: 3px; text-decoration: none; }
.auth-entry-footer a:hover { text-decoration: underline; }

/* ---------- Código de 6 dígitos (novo: caixas do "auth-otp-slot" com um input real por cima) ---------- */
.auth-otp { position: relative; width: 100%; }
.auth-otp input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0;
  font-size: 16px; letter-spacing: 2em; color: transparent; caret-color: transparent; background: transparent; cursor: text;
}
.auth-otp-group { display: flex; gap: 5px; width: 100%; pointer-events: none; }
.auth-otp-slot { border: 1px solid #ffffff26; background: var(--auth-soft); flex: 1; min-width: 0; height: 52px; border-radius: 12px; display: grid; place-items: center; color: var(--auth-ink); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s; position: relative; }
.auth-otp-slot:nth-child(4) { margin-left: 7px; }
.auth-otp-slot[data-active="true"] { border-color: var(--auth-ink); background: var(--auth-paper); outline: 2px solid #8883; outline-offset: 2px; }
.auth-otp-slot[data-empty="true"] { color: #555; }
.auth-otp-slot[data-caret="true"]::after { content: ""; position: absolute; width: 1px; height: 22px; background: #fff; animation: 1s steps(1) infinite auth-caret; }
.auth-otp.is-invalid .auth-otp-slot { border-color: #b54040; }
.auth-otp.is-shaking .auth-otp-group { animation: .4s auth-shake; }
.auth-otp-help { color: var(--auth-muted); margin: 12px 4px 0; font-size: 12px; line-height: 1.6; }

.auth-spin { animation: 1s linear infinite auth-studio-spin; }
.auth-skip { z-index: 100; color: #fff; background: #111; border-radius: 10px; padding: 12px 20px; position: fixed; top: -80px; left: 24px; }
.auth-skip:focus { top: 14px; }
.auth-studio :focus-visible { outline: 2px solid var(--auth-ink); outline-offset: 4px; }
.auth-studio input:focus-visible { outline: 0; }

/* ---------- Animações ---------- */
@keyframes auth-orbit-travel { to { transform: rotate(360deg); } }
@keyframes auth-core-float { 0%, to { transform: translateY(5px) rotateX(-4deg) rotateY(-6deg); } 50% { transform: translateY(-10px) rotateX(4deg) rotateY(6deg); } }
@keyframes auth-metal-light { 0%, to { background-position: 0%; } 50% { background-position: 100%; } }
@keyframes auth-aura { 0%, to { opacity: .45; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes auth-reflection { 0%, to { opacity: .4; transform: rotate(-15deg); } 50% { opacity: .9; transform: rotate(30deg); } }
@keyframes auth-enter { 0% { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-luminous-breathe { 0%, to { opacity: .32; transform: scale(.85); } 50% { opacity: .85; transform: scale(1.2); } }
@keyframes auth-phrase-cycle { 0% { opacity: 0; filter: blur(5px); transform: translateY(12px); } 12%, 88% { opacity: 1; filter: blur(0); transform: translateY(0); } to { opacity: 0; filter: blur(4px); transform: translateY(-9px); } }
@keyframes auth-phrase-icon-enter { 0% { transform: rotateY(100deg) rotate(-24deg) scale(.6); } 12% { transform: rotateY(-10deg) rotate(4deg) scale(1.12); } 23%, 84% { transform: rotateY(0) rotate(0) scale(1); } to { transform: rotateY(-15deg) scale(.9); } }
@keyframes auth-studio-spin { to { transform: rotate(360deg); } }
@keyframes auth-caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes auth-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes auth-brand-breathe { 0%, to { opacity: .65; filter: invert() drop-shadow(0 0 #fff0); } 50% { opacity: 1; filter: invert() drop-shadow(0 0 7px #fff5); } }

/* ---------- Responsivo (mesmos cortes do login anterior) ---------- */
@media (max-width: 1000px) {
  .auth-story { padding: 34px 32px 28px; }
  .auth-entry { padding: 35px 24px 28px; }
  .auth-shell { grid-template-columns: .95fr 1fr; }
  .auth-identity h2 { font-size: 52px; }
  .auth-scene { width: calc(100% + 50px); }
  .auth-form-wrap { padding: 28px 24px; }
  .auth-form-heading h1 { font-size: 34px; }
}
@media (max-width: 760px) {
  .auth-shell { display: block; }
  .auth-story { padding: 32px 26px 0; }
  .auth-identity, .auth-story-footer { display: none; }
  .auth-brand img { animation: 4s ease-in-out auth-brand-breathe; }
  .auth-entry { min-height: calc(100svh - 52px); padding: 25px 18px max(28px, env(safe-area-inset-bottom)); border-left: 0; }
  .auth-entry-top { padding: 0 8px 26px; }
  .auth-form-wrap { border-radius: 28px; max-width: 400px; margin: auto; padding: 30px 22px; }
  .auth-form-heading h1 { font-size: clamp(30px, 8.7vw, 38px); }
  .auth-form-heading > p { margin-bottom: 24px; font-size: 14px; }
  .auth-entry-footer { padding-top: 28px; }
  .auth-otp-group { gap: 4px; }
  .auth-otp-slot { height: 46px; font-size: 18px; }
  .auth-otp-slot:nth-child(4) { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-studio *, .auth-studio *::before, .auth-studio *::after { scroll-behavior: auto; transition: none; animation: none; }
}
