/*
 * Layout das telas públicas do Casting (antes do login).
 * Usado por inc_layout_publico.asp. Ao alterar, suba o ?v= em inc_layout_publico.asp.
 */
:root {
  --rubine: #C50654;
  --rubine-escuro: #8E033B;
  --rubine-claro: #E8317A;
  --rosa-suave: #FDE8F0;
  --tinta: #1D1220;
  --texto: #4A4150;
  --texto-suave: #8A8191;
  --borda: #E7E1EA;
  --fundo: #F7F4F8;
  --branco: #FFFFFF;
  --erro: #D93025;
  --sucesso: #138A4B;
  --alerta: #B86A00;
  --raio: 14px;
  --fonte: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--fonte);
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.tela {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Painel da marca ---------- */
.marca {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 48px clamp(32px, 5vw, 72px);
  background: var(--rubine);
  color: var(--branco);
  isolation: isolate;
}

.marca::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(160deg, #000 10%, transparent 70%);
  -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 70%);
  z-index: -1;
}

.bolha {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: -2;
  animation: flutuar 18s ease-in-out infinite alternate;
}
.bolha.b1 { width: 420px; height: 420px; background: var(--rubine-claro); top: -120px; right: -100px; }
.bolha.b2 { width: 360px; height: 360px; background: var(--rubine-escuro); bottom: -120px; left: -80px; animation-delay: -6s; }
.bolha.b3 { width: 220px; height: 220px; background: #FF6FA5; bottom: 18%; right: 12%; opacity: .35; animation-delay: -12s; }

@keyframes flutuar {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.12); }
}

.marca-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .9;
  text-decoration: none;
  align-self: flex-start;
}
.marca-topo .ponto {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.25);
  animation: pulsar 2.4s ease-in-out infinite;
}
@keyframes pulsar { 50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

.marca-centro { max-width: 520px; }

.marca-centro > a { display: block; }

.logo {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin: 0 0 36px -6px;
  animation: entrar .8s cubic-bezier(.2,.8,.2,1) both;
}

.marca h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  animation: entrar .8s .1s cubic-bezier(.2,.8,.2,1) both;
}
.marca h2 span { color: #FFD3E4; }

.marca p.lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  animation: entrar .8s .2s cubic-bezier(.2,.8,.2,1) both;
}

.recursos { list-style: none; display: grid; gap: 12px; animation: entrar .8s .3s cubic-bezier(.2,.8,.2,1) both; }
.recursos li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 15px;
}
.recursos i {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 14px;
  flex-shrink: 0;
}

.marca-rodape {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.75);
}

.sociais { display: flex; gap: 10px; }
.sociais a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; text-decoration: none; font-size: 17px;
  transition: background .2s, transform .2s;
}
.sociais a:hover, .sociais a:focus-visible { background: rgba(255,255,255,.26); transform: translateY(-2px); }

/* ---------- Painel do conteúdo ---------- */
.acesso-lado {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px clamp(20px, 5vw, 64px);
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

.cartao {
  width: 100%;
  max-width: 420px;
  animation: entrar .7s .15s cubic-bezier(.2,.8,.2,1) both;
}

.cartao h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--tinta);
  margin-bottom: 8px;
}
.cartao .sub { font-size: 15px; line-height: 1.55; color: var(--texto-suave); margin-bottom: 32px; }

.voltar {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 28px;
  font-size: 14px; font-weight: 600; color: var(--texto-suave);
  text-decoration: none;
  transition: color .2s, transform .2s;
}
.voltar:hover { color: var(--rubine); transform: translateX(-2px); }

.campo { margin-bottom: 18px; }
.campo label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta);
  margin-bottom: 8px;
}
.campo-linha { display: flex; justify-content: space-between; align-items: baseline; }
.campo-linha a {
  font-size: 13px; font-weight: 600; color: var(--rubine); text-decoration: none;
}
.campo-linha a:hover { text-decoration: underline; }

.entrada { position: relative; }
.entrada > i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--texto-suave); font-size: 15px; pointer-events: none;
  transition: color .2s;
}
.entrada input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 46px;
  font: inherit;
  font-size: 16px;
  color: var(--tinta);
  background: var(--branco);
  border: 1.5px solid var(--borda);
  border-radius: var(--raio);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.entrada input::placeholder { color: #B6AEBB; }
.entrada input:hover { border-color: #D4CAD8; }
.entrada input:focus { border-color: var(--rubine); box-shadow: 0 0 0 4px rgba(197, 6, 84, .12); }
.entrada:focus-within > i { color: var(--rubine); }
.campo.invalido .entrada input { border-color: var(--erro); box-shadow: 0 0 0 4px rgba(217, 48, 37, .1); }
.campo.valido .entrada input { border-color: #9FD8B8; }

.ver-senha {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--texto-suave);
  cursor: pointer; font-size: 15px;
}
.ver-senha:hover, .ver-senha:focus-visible { background: var(--fundo); color: var(--tinta); outline: none; }

.error-msg { font-size: 13px; font-weight: 600; color: var(--erro); margin-top: 6px; }
.error-msg:empty { display: none; }
.error-msg.agitar { animation: agitar .4s ease; }
.aviso-caps { display: none; font-size: 12px; color: var(--alerta); margin-top: 6px; font-weight: 600; }
.aviso-caps.ativo { display: block; }
.dica { font-size: 12px; color: var(--texto-suave); margin-top: 6px; line-height: 1.5; }

/* Medidor de força da senha (apenas indicativo) */
.forca { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.forca[hidden] { display: none; }
.forca-barras { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.forca-barras span { height: 4px; border-radius: 4px; background: var(--borda); transition: background .25s; }
.forca-rotulo { font-size: 12px; font-weight: 700; min-width: 48px; text-align: right; color: var(--texto-suave); }
.forca[data-nivel="1"] .forca-barras span:nth-child(-n+1) { background: var(--erro); }
.forca[data-nivel="2"] .forca-barras span:nth-child(-n+2) { background: #E8833A; }
.forca[data-nivel="3"] .forca-barras span:nth-child(-n+3) { background: #4CAF7A; }
.forca[data-nivel="4"] .forca-barras span:nth-child(-n+4) { background: var(--sucesso); }

.lembrar {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--texto);
  margin: 4px 0 24px; cursor: pointer; user-select: none;
}
.lembrar input { width: 18px; height: 18px; accent-color: var(--rubine); cursor: pointer; }

.btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 20px;
  font: inherit; font-size: 16px; font-weight: 700;
  border-radius: var(--raio);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.985); }
.btn-principal {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rubine-claro), var(--rubine) 55%, var(--rubine-escuro));
  box-shadow: 0 12px 28px -10px rgba(197, 6, 84, .6);
}
.btn-principal:hover { box-shadow: 0 16px 34px -10px rgba(197, 6, 84, .7); }
.btn-principal:focus-visible { outline: 3px solid rgba(197, 6, 84, .35); outline-offset: 3px; }
.btn-principal[disabled] { opacity: .65; cursor: not-allowed; box-shadow: none; }
.btn-principal .girando { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: girar .7s linear infinite; }
.btn-principal.carregando .girando { display: block; }
.btn-principal .rotulo i { margin-left: 8px; transition: transform .2s; }
.btn-principal:hover .rotulo i { transform: translateX(3px); }
.btn-principal.carregando .rotulo i { display: none; }

.btn-secundario {
  border: 1.5px solid var(--borda);
  background: var(--branco);
  color: var(--tinta);
}
.btn-secundario:hover { border-color: var(--rubine); color: var(--rubine); }

.btn-texto {
  height: auto; padding: 12px; border: 0; background: transparent;
  color: var(--rubine); font-size: 15px;
}
.btn-texto:hover { text-decoration: underline; }

.divisor {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 18px;
  font-size: 13px; color: var(--texto-suave);
}
.divisor::before, .divisor::after { content: ''; flex: 1; height: 1px; background: var(--borda); }

/* ---------- Tela de status (confirmações, avisos e erros) ---------- */
.status { text-align: center; }
.status-icone {
  display: grid; place-items: center;
  width: 84px; height: 84px; margin: 0 auto 24px;
  border-radius: 26px;
  font-size: 34px;
  animation: surgir .6s .2s cubic-bezier(.2,1.4,.4,1) both;
}
.status-sucesso .status-icone { background: #E5F6EC; color: var(--sucesso); }
.status-email   .status-icone { background: var(--rosa-suave); color: var(--rubine); }
.status-aviso   .status-icone { background: #FFF3E0; color: var(--alerta); }
.status-erro    .status-icone { background: #FDECEA; color: var(--erro); }
.status h1 { margin-bottom: 12px; }
.status-texto { font-size: 15px; line-height: 1.65; color: var(--texto); margin-bottom: 32px; }
.status-texto p + p { margin-top: 10px; }
.status-texto strong { color: var(--tinta); overflow-wrap: anywhere; }
.status-texto .suave { color: var(--texto-suave); font-size: 14px; }

.acoes { display: grid; gap: 12px; }
.acoes form { display: contents; }

/* Instalar app */
.instalar {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: var(--rosa-suave);
  border: 1px solid #F8CFDF;
}
.instalar[hidden] { display: none; }
.instalar img { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.instalar .txt { flex: 1; font-size: 13px; line-height: 1.4; color: var(--texto); }
.instalar .txt strong { display: block; font-size: 14px; color: var(--tinta); }
.instalar button.acao {
  border: 0; border-radius: 10px; padding: 10px 14px;
  background: var(--rubine); color: #fff; font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.instalar button.acao[hidden] { display: none; }
.instalar button.fechar {
  border: 0; background: transparent; color: var(--texto-suave); cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
}
.instalar button.fechar:hover { background: rgba(0,0,0,.05); }

.rodape-form { margin-top: 32px; text-align: center; font-size: 12px; color: var(--texto-suave); }

/* Sem conexão */
.offline {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 150%);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--tinta); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 50; white-space: nowrap;
}
.offline.ativo { transform: translate(-50%, 0); }

@keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes surgir { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes agitar { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Tablet / celular ---------- */
@media (max-width: 960px) {
  .tela { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }

  .marca {
    padding: calc(28px + env(safe-area-inset-top, 0px)) 24px 64px;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .marca-topo, .recursos, .marca p.lead, .marca-rodape { display: none; }
  .marca-centro { max-width: none; }
  .logo { width: min(72vw, 300px); margin: 0 auto; }
  .marca h2 { font-size: 20px; margin: 18px 0 0; font-weight: 700; }

  .acesso-lado {
    position: relative;
    margin-top: -36px;
    padding: 36px 20px calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--fundo);
    border-radius: 28px 28px 0 0;
    justify-content: flex-start;
  }
  .cartao h1 { font-size: 26px; }
  .cartao .sub { margin-bottom: 26px; }
  .voltar { margin-bottom: 20px; }

  .sociais-mobile { display: flex; justify-content: center; margin-top: 24px; }
  .sociais-mobile a { background: var(--branco); border-color: var(--borda); color: var(--rubine); }
  .sociais-mobile a:hover { background: var(--rosa-suave); }
}
@media (min-width: 961px) { .sociais-mobile { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
