/* =====================================================================
   TELA DE ENTRADA (/entrar/) — visual da página inicial: escuro, verde da marca, cartão em duas colunas
   ===================================================================== */
body.ent {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(31, 122, 79, 0.42), transparent 70%),
    radial-gradient(900px 500px at 100% 100%, rgba(31, 122, 79, 0.12), transparent 70%),
    #0a110d;
  color: #eef4f0;
  font-family: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
body.ent [hidden] { display: none !important; }

.ent-topo { position: absolute; top: 18px; left: 24px; z-index: 2; }
.ent-marca { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.ent-marca img { width: 34px; height: 34px; }
.ent-marca span { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
/* Idioma (js/idioma.js monta o botão com a bandeira): canto de cima à direita, na altura da marca */
.ent-idioma { position: absolute; top: 17px; right: 24px; z-index: 3; color: #eef4f0; }

/* A tela inteira cabe sem rolagem (pedido do dono, 12/10/2026): espaços menores e, em telas baixas, mais compacto ainda
   (blocos @media (max-height) no fim) */
.ent-centro { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 64px 16px 20px; box-sizing: border-box; }
.ent-cartao {
  width: min(830px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121a16; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
}

/* ---------------------------------------------------------------- lado com a chamada */
.ent-lado {
  display: flex; align-items: flex-end; padding: 32px;
  background: linear-gradient(165deg, #263b30 0%, #1d2e25 45%, #18261f 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.ent-lado-textos { padding-bottom: 14px; }
.ent-kicker { margin: 0 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #39e26d; }
.ent-lado h2 { margin: 0; font-size: clamp(34px, 4.6vw, 46px); font-weight: 600; line-height: 1.02; letter-spacing: 0.02em; text-transform: uppercase; color: #f4f8f5; }
.ent-lado p:last-child { margin: 16px 0 0; max-width: 250px; font-size: 14.5px; line-height: 1.5; color: #a9b8af; }

/* ---------------------------------------------------------------- formulário */
.ent-form-area { padding: 30px 32px 22px; display: flex; flex-direction: column; min-height: 0; }
.ent-titulo { margin: 0 0 14px; font-size: 25px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #f4f8f5; }
.ent-form { display: flex; flex-direction: column; gap: 11px; }
.ent-campo { display: flex; flex-direction: column; gap: 5px; }
/* "Senha" e "Esqueci a senha" na mesma linha (uma linha a menos) */
.ent-rotulo-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ent-campo label { font-size: 13.5px; font-weight: 600; color: #c7d2cb; }
.ent-campo label small { color: #7f938a; font-weight: 600; }
.ent-campo input {
  height: 40px; width: 100%; box-sizing: border-box; padding: 0 14px;
  border-radius: 12px; border: 1px solid #222d27; background: #0c1210; color: #fff;
  font: inherit; font-size: 14.5px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ent-campo input::placeholder { color: #5f7067; }
.ent-campo input:focus { border-color: #2fa565; box-shadow: 0 0 0 3px rgba(57, 226, 109, 0.15); }
/* Senha com o botão "Mostrar" ao lado (js/mostrar-senha.js) */
.ent-campo .campo-senha-mostrar { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.ent-campo .campo-senha-mostrar > input { flex: 1; min-width: 0; }
.ent-campo .btn-mostrar-senha { flex: none; min-width: 84px; padding: 0 14px; border-radius: 12px; border: 1px solid #2a3530; background: #0f1512; color: #e8efeb; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.ent-campo .btn-mostrar-senha:hover { border-color: #4a5a52; color: #fff; }
.ent-campo .btn-mostrar-senha[aria-pressed="true"] { border-color: #2fa565; color: #39e26d; }
.ent-campo .btn-mostrar-senha:focus-visible { outline: 2px solid #39e26d; outline-offset: 2px; }
.ent-codigo { text-align: center; font-size: 24px !important; font-weight: 800; letter-spacing: 0.24em; height: 54px !important; }
.ent-link-pequeno { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #39e26d; cursor: pointer; }
.ent-link-pequeno:hover { text-decoration: underline; }

.ent-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; width: 100%;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ent-botao.primario { background: linear-gradient(180deg, #44c47f 0%, #2a9d5c 100%); color: #06251a; box-shadow: 0 10px 28px -10px rgba(63, 191, 120, 0.7); }
.ent-botao.primario:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(63, 191, 120, 0.9); }
.ent-botao.google, .ent-botao.contorno { background: #0f1512; color: #fff; border-color: #2a3530; }
.ent-botao.google:hover, .ent-botao.contorno:hover { border-color: #4a5a52; background: #141c18; }
.ent-botao:disabled { opacity: 0.7; cursor: progress; transform: none; }
.ent-botao .logo-google { flex: none; }
.ent-botao:focus-visible, .ent-link:focus-visible, .ent-link-pequeno:focus-visible { outline: 2px solid #39e26d; outline-offset: 3px; }

.ent-ou { display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6f8178; }
.ent-ou::before, .ent-ou::after { content: ''; flex: 1; height: 1px; background: #222d27; }
.ent-nota { margin: 0; padding: 9px 12px; border-radius: 12px; background: #0f1512; border: 1px solid #222d27; font-size: 12.5px; line-height: 1.45; color: #a9b8af; text-align: center; }
.ent-troca { margin: 0; font-size: 13px; line-height: 1.65; color: #c7d2cb; text-align: center; }
#troca-login { margin-top: 2px; font-size: 13.5px; }
/* Atalhos discretos embaixo do "Criar conta" (Sou atleta · Sou da equipe do evento / Sou organizador) */
.ent-atalhos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; margin: -4px 0 0; font-size: 12.5px; color: #4f6158; }
.ent-atalho { padding: 2px 0; border: 0; background: none; font: inherit; font-weight: 600; color: #8fa398; cursor: pointer; }
.ent-atalho:hover, .ent-atalho[aria-expanded="true"] { color: #39e26d; }
.ent-atalho:focus-visible { outline: 2px solid #39e26d; outline-offset: 3px; border-radius: 4px; }
.ent-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: #39e26d; cursor: pointer; }
.ent-link:hover { text-decoration: underline; }
.ent-erro { font-size: 13px; font-weight: 600; line-height: 1.45; color: #fca5a5; }
.ent-erro:empty { display: none; }

.ent-estado { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0; text-align: center; font-size: 15px; color: #c7d2cb; }
.ent-estado > .material-symbols-outlined { font-size: 34px; color: #39e26d; }
.ent-estado code { padding: 4px 8px; border-radius: 8px; background: #0c1210; color: #fff; }
.ent-estado .ent-botao { width: auto; padding: 0 22px; }
body.ent .aviso { margin-bottom: 14px; }

/* ---------------------------------------------------------------- celular */
@media (max-width: 760px) {
  .ent-centro { place-items: start center; padding-top: 74px; }
  .ent-cartao { grid-template-columns: minmax(0, 1fr); }
  .ent-lado { padding: 26px 24px 8px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .ent-lado-textos { padding-bottom: 8px; }
  .ent-lado h2 { font-size: 32px; }
  .ent-lado p:last-child { max-width: none; margin-top: 10px; }
  .ent-form-area { padding: 26px 22px 28px; min-height: 0; }
  .ent-titulo { font-size: 22px; }
  .ent-campo input { font-size: 16px; } /* iPhone: sem zoom ao tocar */
}

/* Conta de atleta que entra pelo lado do organizador: escolher (virar organizador ou ir para a área do atleta) */
.ent-estado-texto { margin: 10px auto 0; max-width: 420px; font-size: 13.5px; line-height: 1.55; color: #9fb0a7; }
.ent-estado-botoes { display: flex; flex-direction: column; gap: 10px; width: min(360px, 100%); margin: 16px auto 0; }
.ent-estado-erro { margin: 8px 0 0; font-size: 13px; color: #ff8a8a; }

/* Contato oficial embaixo do formulário: "Precisa de ajuda?" + só os ícones (js/contato.js htmlIconesContato) */
.ent-ajuda { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #22302a; font-size: 12.5px; }
.ent-ajuda .ct-rotulo { font-weight: 600; color: #8fa398; }
.ent-ajuda .ct-icones { display: inline-flex; gap: 8px; }
.ent-ajuda .ct-icone-botao { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2a3530; background: #0f1512; transition: border-color .15s ease, background .15s ease; }
.ent-ajuda .ct-icone-botao:hover { border-color: #2fa565; background: #141c18; }
.ent-ajuda .ct-icone-botao:focus-visible { outline: 2px solid #39e26d; outline-offset: 2px; }
.ent-ajuda .ct-png { display: block; width: 17px; height: 17px; }

/* ---------------------------------------------------------------- telas baixas (computador): tudo cabe sem rolagem */
@media (min-width: 761px) and (max-height: 780px) {
  .ent-topo { top: 12px; }
  .ent-idioma { top: 11px; }
  .ent-centro { padding: 54px 16px 12px; }
  .ent-lado { padding: 26px; }
  .ent-lado h2 { font-size: clamp(30px, 4vw, 40px); }
  .ent-form-area { padding: 22px 28px 16px; }
  .ent-titulo { margin-bottom: 10px; font-size: 22px; }
  .ent-form { gap: 9px; }
  .ent-campo { gap: 4px; }
  .ent-campo input { height: 38px; }
  .ent-botao { min-height: 40px; }
  .ent-ajuda { margin-top: 10px; padding-top: 9px; }
}
@media (min-width: 761px) and (max-height: 660px) {
  .ent-centro { padding-top: 50px; }
  .ent-campo label { font-size: 12.5px; }
  .ent-campo input { height: 36px; }
  .ent-botao { min-height: 38px; font-size: 14px; }
  .ent-troca { line-height: 1.5; }
}
@media (min-width: 761px) and (max-height: 620px) {
  .ent-topo { top: 8px; }
  .ent-idioma { top: 6px; }
  .ent-marca img { width: 28px; height: 28px; }
  .ent-centro { padding: 42px 16px 6px; }
  .ent-form-area { padding: 16px 26px 10px; }
  .ent-titulo { margin-bottom: 8px; font-size: 20px; }
  .ent-form { gap: 8px; }
  .ent-ajuda { margin-top: 8px; padding-top: 6px; }
}
/* ---------------------------------------------------------------- celular: o lado vira uma faixa curta */
@media (max-width: 760px) {
  .ent-idioma { right: 14px; }
  .ent-centro { padding: 62px 12px 14px; }
  .ent-lado { padding: 18px 20px 4px; }
  .ent-lado h2 { font-size: 26px; }
  .ent-lado p:last-child { margin-top: 6px; font-size: 13.5px; }
  .ent-form-area { padding: 18px 18px 16px; }
  .ent-titulo { margin-bottom: 10px; font-size: 20px; }
  .ent-form { gap: 9px; }
}
@media (max-width: 760px) and (max-height: 760px) {
  .ent-lado { display: none; }
  .ent-centro { padding-top: 58px; }
}
