/* Páginas de entrada: entrar, criar conta, recuperar senha e convite. */
:root { --pri: #1b2e56; --dest: #0f747c; --texto: #1c2434; --texto2: #5a6578; --linha: #d5dae3; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Inter", system-ui, sans-serif; font-size: 15px; color: var(--texto); background: #f4f5f8; -webkit-font-smoothing: antialiased; }
.palco { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.lado { background: linear-gradient(160deg, #1b2e56 0%, #132241 55%, #0d3d47 100%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.logo { font-family: "Jost", sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .34em; text-transform: uppercase; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.logo i { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 19px solid #2fb3a8; }
.logo small { letter-spacing: .2em; opacity: .7; font-size: 12px; }
.lado h1 { font-family: "Jost", sans-serif; font-weight: 500; font-size: 38px; line-height: 1.15; margin: 0 0 18px; max-width: 460px; position: relative; z-index: 1; }
.lado ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; max-width: 440px; position: relative; z-index: 1; }
.lado li { padding-left: 26px; position: relative; color: rgba(255,255,255,.86); line-height: 1.45; }
.lado li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 6px; border-left: 2px solid #2fb3a8; border-bottom: 2px solid #2fb3a8; transform: rotate(-45deg); }
.lado .rodape { color: rgba(255,255,255,.5); font-size: 13px; position: relative; z-index: 1; }
.forma { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.caixa { width: 100%; max-width: 420px; }
.caixa h2 { font-family: "Jost", sans-serif; font-weight: 600; font-size: 27px; color: var(--pri); margin: 0 0 6px; }
.caixa > p { color: var(--texto2); margin: 0 0 24px; line-height: 1.5; }
label { display: block; margin-bottom: 14px; }
label > span { display: block; font-size: 13px; font-weight: 600; color: var(--texto2); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], select { width: 100%; font: inherit; color: inherit; border: 1px solid var(--linha); background: #fff; border-radius: 10px; padding: 12px 13px; outline: none; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus { border-color: var(--dest); box-shadow: 0 0 0 3px rgba(15,116,124,.16); }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.bt { width: 100%; font: inherit; font-weight: 700; font-size: 16px; border: 0; background: var(--dest); color: #fff; padding: 14px; border-radius: 10px; cursor: pointer; margin-top: 6px; transition: background .12s; }
.bt:hover { background: #0c5f66; }
.bt[disabled] { opacity: .6; cursor: wait; }
.aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--texto2); line-height: 1.45; margin: 4px 0 14px; }
.aceite input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--dest); flex: none; }
.erro { background: #fbe9e8; color: #8a2a25; border-radius: 10px; padding: 11px 13px; margin-bottom: 14px; font-size: 14px; }
.certo { background: #e5f5ec; color: #176640; border-radius: 10px; padding: 11px 13px; margin-bottom: 14px; font-size: 14px; }
.links { margin-top: 20px; text-align: center; color: var(--texto2); font-size: 14px; }
a { color: var(--dest); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
.planos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.planos label { margin: 0; }
.planos input { position: absolute; opacity: 0; }
.planos b { display: block; font-size: 14px; }
.planos small { color: var(--texto2); font-size: 12px; }
.planos .op { display: block; border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fff; height: 100%; }
.planos input:checked + .op { border-color: var(--dest); box-shadow: 0 0 0 2px rgba(15,116,124,.2); background: #f1f9f9; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .palco { grid-template-columns: 1fr; }
  .lado { padding: 26px 24px 28px; }
  .lado h1 { font-size: 25px; margin-top: 22px; }
  .lado ul, .lado .rodape { display: none; }
  .lado::after,   .forma { padding: 28px 20px 40px; align-items: flex-start; }
}

/* ── efeitos: fundo vivo, prisma 3D, entrada em cascata e passagem para dentro do sistema ── */
.lado > * { position: relative; z-index: 1; }
.lado canvas { position: absolute; z-index: 0; pointer-events: none; }
.lado .fundo { inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.lado .fundo.vivo { opacity: 1; }
.lado .prisma { right: -3%; bottom: 3%; width: min(56%, 440px); aspect-ratio: 1; opacity: 0; animation: surge 1.6s .35s ease forwards; }
@keyframes surge { to { opacity: .92; } }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lado .logo, .lado h1, .lado li, .lado .rodape, .caixa > * { opacity: 0; animation: sobe .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.lado .logo { animation-delay: .05s; } .lado h1 { animation-delay: .18s; }
.lado li:nth-child(1) { animation-delay: .32s; } .lado li:nth-child(2) { animation-delay: .42s; } .lado li:nth-child(3) { animation-delay: .52s; } .lado li:nth-child(4) { animation-delay: .62s; }
.lado .rodape { animation-delay: .8s; }
.caixa > *:nth-child(1) { animation-delay: .12s; } .caixa > *:nth-child(2) { animation-delay: .18s; } .caixa > *:nth-child(3) { animation-delay: .22s; }
.caixa > *:nth-child(4) { animation-delay: .26s; } .caixa > *:nth-child(5) { animation-delay: .30s; } .caixa > *:nth-child(6) { animation-delay: .34s; }
.caixa > *:nth-child(7) { animation-delay: .38s; } .caixa > *:nth-child(8) { animation-delay: .42s; } .caixa > *:nth-child(n+9) { animation-delay: .46s; }
.caixa > [hidden] { animation: none; }
.bt { position: relative; overflow: hidden; }
.bt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.bt:hover::after { transform: translateX(120%); }
.bt:active { transform: translateY(1px); }
/* cortina: ao entrar, a cor da marca toma a tela e o sistema abre por baixo */
.cortina { position: fixed; inset: 0; z-index: 50; background: linear-gradient(160deg, #1b2e56 0%, #132241 55%, #0d3d47 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff; clip-path: inset(0 100% 0 0); transition: clip-path .75s cubic-bezier(.7, 0, .2, 1); }
.cortina.fecha { clip-path: inset(0 0 0 0); }
.cortina i { width: 0; height: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 45px solid #2fb3a8; opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .5s .45s, transform .6s .45s cubic-bezier(.2, .7, .2, 1); }
.cortina b { font-family: "Jost", sans-serif; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; font-size: 15px; opacity: 0; transition: opacity .5s .6s; }
.cortina.fecha i { opacity: 1; transform: none; } .cortina.fecha b { opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  .lado .logo, .lado h1, .lado li, .lado .rodape, .caixa > *, .lado .prisma { animation: none; opacity: 1; }
  .cortina, .cortina i, .cortina b { transition: none; }
}
