/* ================= página /client/register (criar conta) ================= */
/* a vitrine aqui tem mais conteúdo que a do login: o texto entra no fluxo (a página rola se a tela for baixa) */
.pg-cadastro .l2-vitrine { display: flex; align-items: center; }
.pg-cadastro .l2-texto { position: relative; top: auto; left: auto; transform: none; margin-left: clamp(40px, 6vw, 130px); padding: 72px 0 40px; max-width: min(640px, 46vw); }
.cd-aff[hidden], .cd-etapa[hidden] { display: none; }
.pg-cadastro .l2-texto h2 { font-size: clamp(30px, 3.1vw, 60px); }
.pg-cadastro .l2-texto p { margin: 14px 0 20px; }
.pg-cadastro .l2-voltar { top: -64px; }
.cd-sobre { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono, monospace); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ciano); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(63, 227, 242, .35); background: rgba(63, 227, 242, .07); margin-bottom: 16px; }
.cd-sobre i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde, #39d98a); box-shadow: 0 0 10px var(--verde, #39d98a); animation: cd-pisca 1.6s ease-in-out infinite alternate; }
@keyframes cd-pisca { to { opacity: .35; } }

/* a jornada em 3 passos */
.cd-jornada { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; position: relative; }
.cd-jornada::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(180deg, var(--ciano), #ce001c 50%, #9a7bff); opacity: .5; border-radius: 2px; }
.cd-jornada li { position: relative; display: flex; gap: 14px; align-items: center; animation: cd-entra .6s cubic-bezier(.2, .9, .2, 1) backwards; animation-delay: calc(.2s + var(--i) * .12s); }
@keyframes cd-entra { from { transform: translateX(-14px); } }
.cd-jornada li > b { flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--ciano); background: #051016; border: 1px solid rgba(63, 227, 242, .45); box-shadow: 0 0 22px -6px rgba(63, 227, 242, .6); position: relative; z-index: 1; }
.cd-jornada strong { display: block; font-size: clamp(14px, 1vw, 17px); color: #fff; }
.cd-jornada small { display: block; font-size: clamp(12px, .85vw, 14px); color: var(--suave); }
.cd-jornada li.cd-j-errante > b { color: #ff5a6e; border-color: rgba(206, 0, 28, .6); box-shadow: 0 0 22px -4px rgba(206, 0, 28, .7); }

/* o cupom da Errante */
.cd-ticket { --tx: 30%; --ty: 20%; position: relative; display: grid; gap: 8px; padding: 18px 22px 16px; border-radius: 20px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at var(--tx) var(--ty), rgba(255, 120, 135, .35), transparent 45%), linear-gradient(125deg, #5a0010 0%, #a50018 38%, #ce001c 60%, #7a0013 100%);
  border: 1px solid rgba(255, 120, 135, .55);
  box-shadow: 0 30px 70px -30px rgba(206, 0, 28, .85), 0 0 0 1px rgba(0, 0, 0, .3) inset;
  -webkit-mask: radial-gradient(circle 11px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: transform .3s cubic-bezier(.2, .9, .2, 1), box-shadow .3s; animation: cd-entra .7s cubic-bezier(.2, .9, .2, 1) .55s backwards; }
.cd-ticket:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 40px 90px -30px rgba(206, 0, 28, 1), 0 0 0 1px rgba(0, 0, 0, .3) inset; }
.cd-ticket::after { content: ""; position: absolute; left: 14px; right: 14px; top: 62%; border-top: 2px dashed rgba(255, 255, 255, .28); z-index: -1; }
.cd-t-brilho { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 46%, rgba(255, 230, 180, .18) 50%, transparent 64%); transform: translateX(-120%); animation: cd-brilho 3.6s ease-in-out 1.2s infinite; }
@keyframes cd-brilho { 55%, 100% { transform: translateX(120%); } }
.cd-t-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cd-t-marca { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(10, 2, 4, .82); border: 1px solid rgba(255, 255, 255, .14); }
.cd-t-marca img { height: 18px; width: auto; display: block; }
.cd-t-topo em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); }
.cd-t-titulo { display: block; font-size: clamp(26px, 2.3vw, 40px); font-weight: 900; letter-spacing: -.01em; line-height: 1; margin-top: 4px; text-shadow: 0 6px 24px rgba(60, 0, 8, .7); background: linear-gradient(100deg, #fff, #ffe3b0 55%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-t-titulo span { display: block; font-size: .5em; font-weight: 700; letter-spacing: 0; margin-top: 6px; color: #ffd9de; -webkit-text-fill-color: #ffd9de; }
.cd-t-txt { font-size: 13.5px; color: #ffe6e9; line-height: 1.5; max-width: 52ch; }
.cd-t-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 6px; }
.cd-t-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 14px; color: #a50018; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); transition: gap .2s; }
.cd-ticket:hover .cd-t-cta { gap: 12px; }
.cd-t-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cd-t-pe small { font-size: 11px; color: rgba(255, 225, 230, .7); }
.cd-ticket.mini { padding: 16px 18px 14px; }
.cd-ticket.mini .cd-t-titulo { font-size: 24px; }
.cd-ticket.mini::after { top: 58%; }
.cd-ticket.movel { display: none; width: min(460px, 100%); margin-top: 18px; scroll-margin-top: 20px; }
.cd-faixa-movel { display: none; align-items: center; gap: 10px; width: min(460px, 100%); margin: -8px 0 16px; padding: 10px 14px; border-radius: 14px; text-decoration: none; color: #fff; font-size: 13px; line-height: 1.35; background: linear-gradient(120deg, #7a0013, #ce001c); border: 1px solid rgba(255, 120, 135, .5); box-shadow: 0 14px 34px -16px rgba(206, 0, 28, .9); }
.cd-faixa-movel img { height: 14px; width: auto; padding: 5px 7px; border-radius: 8px; background: rgba(10, 2, 4, .85); box-sizing: content-box; flex-shrink: 0; }
.cd-faixa-movel span { flex: 1; color: #ffe6e9; }
.cd-faixa-movel b { color: #fff; }
.cd-faixa-movel svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: cd-desce 1.4s ease-in-out infinite; }
@keyframes cd-desce { 50% { transform: translateY(3px); } }

/* o formulário */
.cd-card { width: min(460px, 100%); }
.cd-etapa { display: flex; flex-direction: column; gap: 14px; }
.cd-aff { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: var(--gelo); background: rgba(154, 123, 255, .1); border: 1px solid rgba(154, 123, 255, .35); }
.cd-aff svg { width: 18px; height: 18px; flex-shrink: 0; color: #b9a6ff; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cd-forca { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: -6px 4px 0; align-items: center; }
.cd-forca i { height: 4px; border-radius: 4px; background: rgba(141, 170, 197, .18); transition: background .25s; }
.cd-forca small { grid-column: 1 / -1; font-size: 11.5px; color: var(--suave); min-height: 14px; }
.cd-forca[data-n="1"] i:nth-child(-n+1) { background: #ff5d6c; }
.cd-forca[data-n="2"] i:nth-child(-n+2) { background: #f2c66d; }
.cd-forca[data-n="3"] i:nth-child(-n+3) { background: #76ddea; }
.cd-forca[data-n="4"] i { background: #39d98a; box-shadow: 0 0 10px -2px rgba(57, 217, 138, .7); }
.cd-bate { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) scale(.4); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #39d98a; color: #03140c; opacity: 0; transition: all .25s cubic-bezier(.2, 1.4, .4, 1); }
.cd-bate.ok { opacity: 1; transform: translateY(-50%) scale(1); }
.cd-bate svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* conta criada */
.cd-pronto { align-items: stretch; text-align: center; position: relative; }
.cd-confete { position: absolute; inset: -34px -32px -26px; width: calc(100% + 64px); height: calc(100% + 60px); pointer-events: none; z-index: 5; }
.cd-check { width: 88px; height: 88px; margin: 6px auto 4px; border-radius: 50%; display: grid; place-items: center; color: #03140c; background: radial-gradient(circle at 35% 30%, #8ff5c2, #39d98a); box-shadow: 0 0 0 10px rgba(57, 217, 138, .12), 0 20px 60px -10px rgba(57, 217, 138, .7); animation: cd-estoura .55s cubic-bezier(.2, 1.4, .4, 1); }
.cd-check svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes cd-estoura { from { transform: scale(.3); } }
.cd-pronto .cd-ticket { text-align: left; animation-delay: .25s; }
a.cd-entrar { text-decoration: none; }

@media (max-height: 820px) and (min-width: 901px) {
  .cd-jornada { gap: 6px; margin-bottom: 14px; }
  .cd-ticket { padding: 14px 18px 12px; }
  .cd-t-txt { display: none; }
  .pg-cadastro .l2-texto p { margin: 10px 0 14px; }
}
@media (max-width: 900px) {
  .cd-ticket.movel { display: grid; }
  .cd-faixa-movel { display: flex; }
  html { scroll-behavior: smooth; }
  .pg-cadastro .l2-lado { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-t-brilho, .cd-sobre i { animation: none; }
  .cd-jornada li, .cd-ticket { animation: none; }
}

/* "Já tem conta na Errante?" (obrigatório) */
.cd-ticket[hidden], .cd-err-link[hidden] { display: none !important; }
.cd-errante { margin: 2px 0 0; padding: 14px 14px 12px; border-radius: 16px; border: 1px solid rgba(255, 120, 135, .45); background: radial-gradient(120% 140% at 0% 0%, rgba(206, 0, 28, .22), rgba(206, 0, 28, .04) 60%), rgba(10, 4, 6, .5); box-shadow: 0 18px 40px -26px rgba(206, 0, 28, .9); transition: border-color .2s, box-shadow .2s; }
.cd-errante.falta { border-color: #ff5d6c; box-shadow: 0 0 0 3px rgba(255, 93, 108, .2); animation: cd-treme .35s; }
@keyframes cd-treme { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cd-errante legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.cd-errante legend img { height: 14px; width: auto; padding: 6px 8px; border-radius: 8px; background: rgba(10, 2, 4, .85); border: 1px solid rgba(255, 255, 255, .14); box-sizing: content-box; }
.cd-errante legend span { font-size: 15px; font-weight: 700; color: #fff; }
.cd-errante legend b { color: #ff7a8a; }
.cd-errante p { clear: both; margin: 0 0 10px; font-size: 12.5px; color: #f3d6da; }
.cd-errante p b { color: #fff; }
.cd-err-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cd-err-op { position: relative; cursor: pointer; }
.cd-err-op input { position: absolute; opacity: 0; pointer-events: none; }
.cd-err-op > span { display: grid; grid-template-columns: 18px 1fr; column-gap: 9px; align-items: center; height: 100%; padding: 11px 12px; border-radius: 13px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .14); transition: all .2s; }
.cd-err-op i { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); position: relative; }
.cd-err-op b { font-size: 13.5px; color: #fff; line-height: 1.25; }
.cd-err-op small { font-size: 11.5px; color: #c9a9ae; }
.cd-err-op:hover > span { border-color: rgba(255, 255, 255, .3); }
.cd-err-op.destaque > span { background: linear-gradient(135deg, rgba(206, 0, 28, .55), rgba(122, 0, 19, .55)); border-color: rgba(255, 120, 135, .6); }
.cd-err-op input:checked + span { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.cd-err-op input:checked + span i { border-color: #fff; }
.cd-err-op input:checked + span i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.cd-err-op input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.cd-err-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 11px 14px; border-radius: 12px; font-weight: 800; font-size: 14px; color: #a50018; background: #fff; text-decoration: none; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7); animation: cd-pula .4s cubic-bezier(.2, 1.4, .4, 1); }
.cd-err-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes cd-pula { from { transform: scale(.94); } }

/* aceite dos termos (obrigatório) */
.cd-termos { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--suave, #8ea5b4); cursor: pointer; padding: 2px 2px 0; line-height: 1.45; border-radius: 10px; }
.cd-termos input { position: absolute; opacity: 0; pointer-events: none; }
.cd-termos i { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid rgba(141, 170, 197, .45); position: relative; transition: all .2s; }
.cd-termos input:checked + i { background: #3fe3f2; border-color: #3fe3f2; }
.cd-termos input:checked + i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #021016; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cd-termos input:focus-visible + i { outline: 2px solid #3fe3f2; outline-offset: 2px; }
.cd-termos a { color: #3fe3f2; }
.cd-termos.falta i { border-color: #ff5d6c; box-shadow: 0 0 0 3px rgba(255, 93, 108, .2); }
@media (max-width: 420px) { .cd-err-opcoes { grid-template-columns: 1fr; } }
