/* ==========================================================================
   MONSTERIDLE — TELA DE LOGIN & CADASTRO (PORTÃO) REDESIGN PREMIUM
   Tema: Glassmorphism Ciano/Azul Escuro, Iluminação Dinâmica e Micro-animações
   ========================================================================== */

/* Fundo da tela de login com vinheta cinematográfica */
.portao {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: 
    radial-gradient(circle at 50% 25%, rgba(14, 165, 233, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.85) 100%),
    linear-gradient(rgba(4, 9, 20, 0.7), rgba(4, 9, 20, 0.9)),
    url(../assets/ui/fundo-login.webp) center/cover no-repeat;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: portaoFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes portaoFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.portao.oculto {
  display: none !important;
}

/* Container central */
.portao-folha {
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: auto;
}

/* Header com Logo e Badge do Jogo */
.portao-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  margin-bottom: 2px;
}

.portao-logo-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 35px rgba(56, 189, 248, 0.35));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portao-logo-wrap:hover {
  transform: translateY(-2px) scale(1.02);
}

.portao-logo-img {
  width: min(300px, 80vw);
  height: auto;
  object-fit: contain;
  display: block;
}

.portao-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 0 10px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(6px);
}

.portao-badge-ponto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: badgePulso 2s infinite ease-in-out;
}

@keyframes badgePulso {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Card Principal em Vidro Refinado */
.portao-box {
  width: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(8, 14, 28, 0.97) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 20px !important;
  padding: 26px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(14, 165, 233, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.portao-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
}

.portao-box.oculto {
  display: none !important;
}

/* Abas de Navegação (Entrar / Criar Conta) */
.portao-abas-nav {
  display: flex;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  padding: 4px;
  gap: 5px;
  margin-bottom: 2px;
}

.portao-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portao-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.portao-tab-btn.ativo {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(2, 132, 199, 0.45));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #f0f9ff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Títulos do Card */
.portao-box-topo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.portao-box h2 {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portao-box .sub {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

/* Campos de Formulário Modernos */
.portao-box .portao-campo {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
}

.portao-box .portao-rotulo {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: left !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  letter-spacing: 0.2px !important;
}

.portao-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 11px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45);
}

.portao-input-wrap:focus-within {
  border-color: #38bdf8;
  background: rgba(8, 14, 30, 0.9);
  box-shadow: 
    0 0 0 3px rgba(56, 189, 248, 0.22),
    inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.portao-input-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  color: #64748b;
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.2s;
}

.portao-input-wrap:focus-within .portao-input-ico {
  color: #38bdf8;
}

.portao-input-wrap input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #f8fafc !important;
  font-family: inherit;
  font-size: 14px !important;
  padding: 12px 12px 12px 0 !important;
  outline: none !important;
  min-width: 0;
}

.portao-input-wrap input::placeholder {
  color: #475569;
}

/* Botão de Alternar Senha (Olho) */
.portao-btn-olho {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, transform 0.15s;
  outline: none;
}

.portao-btn-olho:hover {
  color: #7dd3fc;
  transform: scale(1.1);
}

/* Linha com 'Lembrar E-mail' */
.portao-box .portao-opcoes-linha {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: -2px;
}

.portao-box .portao-lembrar {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: #cbd5e1;
}

.portao-lembrar input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #475569;
  border-radius: 5px;
  background: rgba(3, 7, 18, 0.8);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.15s;
  margin: 0;
}

.portao-lembrar input[type="checkbox"]:checked {
  background: #0ea5e9;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.portao-lembrar input[type="checkbox"]:checked::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Mensagens de Feedback & Alertas */
.portao-msg {
  min-height: 20px;
  font-size: 13px;
  line-height: 1.4;
  transition: all 0.25s ease;
}

.portao-msg:empty {
  display: none;
}

.portao-msg .msg-alerta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 500;
  animation: msgSlideIn 0.25s ease;
}

.portao-msg .msg-erro {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.portao-msg .msg-sucesso {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #86efac;
}

.portao-msg .msg-info {
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Botões de Ação */
.portao-acoes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.portao-acoes .espaco {
  flex: 1;
}

.portao-btn-primario {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 45%, #38bdf8 100%) !important;
  color: #030712 !important;
  border: none !important;
  border-radius: 11px !important;
  padding: 13px 28px !important;
  font-family: inherit;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 
    0 4px 18px rgba(14, 165, 233, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
}

.portao-btn-primario:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 26px rgba(14, 165, 233, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 45%, #38bdf8 100%) !important;
  color: #ffffff !important;
}

.portao-btn-primario:active {
  transform: translateY(0);
}

.portao-btn-primario:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Links discretos */
.portao-link {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 4px;
  transition: all 0.15s;
}

.portao-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Escolha de Gênero (Treinador / Treinadora) */
.rotulo-sexo {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: left;
  margin-top: 2px;
}

.sexo-escolha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sexo-card {
  position: relative;
  background: rgba(3, 7, 18, 0.7);
  border: 1.5px solid rgba(51, 65, 85, 0.85);
  border-radius: 14px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.sexo-card:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-2px);
}

.sexo-card.on {
  border-color: #38bdf8;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.22) 0%, rgba(3, 7, 18, 0.9) 100%);
  box-shadow: 
    0 0 24px rgba(14, 165, 233, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sexo-card-sprite-wrap {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  transition: transform 0.2s;
}

.sexo-card:hover .sexo-card-sprite-wrap {
  transform: scale(1.12);
}

.sexo-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.sexo-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sexo-card b {
  font-size: 14px;
  color: #f1f5f9;
}

.sexo-card-sub {
  font-size: 11px;
  color: #94a3b8;
}

.sexo-card-check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
}

.sexo-card.on .sexo-card-check {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #030712;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

/* Rodapé do Portão */
.portao-rodape {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 4px;
  text-align: center;
}

.portao-links-secundarios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.portao-tag-roadmap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  transition: all 0.2s;
}

.portao-tag-roadmap:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: #38bdf8;
  color: #f0f9ff;
  transform: translateY(-1px);
}

/* Responsividade Mobile */
@media (max-width: 520px) {
  .portao {
    padding: 12px;
  }
  .portao-box {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  .portao-logo-img {
    width: 220px;
  }
  .portao-btn-primario {
    width: 100%;
    padding: 13px;
  }
  .portao-acoes {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .portao-acoes .portao-link {
    text-align: center;
  }
}

/* aviso LGPD no rodapé do portão: quem acessa aceita os termos (termos.html) */
.portao-lgpd{margin:2px 0 0;font-size:11px;line-height:1.45;color:rgba(148,163,184,.9);max-width:420px}
.portao-lgpd a{color:#67e8f9;text-decoration:underline;text-underline-offset:2px}

/* cadastro: aceite dos termos e verificação anti-robô (Cloudflare Turnstile) */
.portao-aceite { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 6px; }
.portao-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #cfe9f5; cursor: pointer; text-align: left; }
.portao-check input { width: 17px; height: 17px; margin-top: 1px; flex: none; accent-color: #19c3e6; }
.portao-check a { color: #5fe8ff; }
.portao-robo { display: flex; justify-content: center; margin: 8px 0 4px; min-height: 65px; }
label.portao-check { display: flex !important; flex-direction: row !important; align-items: flex-start; }
label.portao-check > span { flex: 1; min-width: 0; }
label.portao-check > input { position: static !important; opacity: 1 !important; }
