/* ==========================================================
   VARIÁVEIS
========================================================== */
:root {
  --gmx-purple: #7b2bbf;
  --gmx-purple-dark: #6a1b9a;
  --gmx-purple-light: #9c4dcc;

  --text-primary: #333;
  --text-secondary: #666;
  --text-soft: #888;

  --border-color: #e0e0e0;
  --bg-card: #ffffff;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 18px 45px rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   RESET
========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================
   BODY (NÃO ALTERADO)
========================================================== */
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: url("../img/bg-ceu-gmx.png") center/cover no-repeat fixed;

  overflow-x: hidden;
}


/* trava somente quando modal aberto */
body.modal-open {
  overflow: hidden;
}

/* ==========================================================
   LOGIN (ESTADO ORIGINAL PRESERVADO)
========================================================== */
.login-page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
/* BLOCO DA LOGO */
.login-logo {
  display: flex;
  flex-direction: column;   /* 🔑 força empilhamento */
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  text-align: center;
  margin-bottom: 1.2rem;
}

/* IMAGEM DA LOGO */
.login-logo img {
  width: 150px;             /* ajuste fino para igual ao “antes” */
  height: auto;
  display: block;
}

/* TEXTO “GMX NexVantagens” (se for separado da imagem) */
.login-logo .brand-text {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

/* SUBTEXTO / SLOGAN */
.login-logo span {
  font-size: 0.85rem;
  color: #7a7a7a;
  font-weight: 400;
  line-height: 1.3;
  max-width: 320px;
}
.login-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 22px;
  box-shadow: var(--shadow-medium);
  padding: 1.8rem 1.5rem 1.5rem;
}

.login-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.login-card > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}

/* ==========================================================
   FORM
========================================================== */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  font-size: 0.95rem;
}

.btn-primary {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--gmx-purple), var(--gmx-purple-light));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

/* ==========================================================
   FOOTER (ESTADO ORIGINAL)
========================================================== */
.login-rodape {
  margin: 1.5rem auto 1rem;
  max-width: 420px;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* some APENAS quando modal aberto */
body.modal-open .login-rodape {
  display: none;
}

/* ==========================================================
   MODAL TERMO (TOTALMENTE ISOLADO)
========================================================== */
.termo-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  background: linear-gradient(
    180deg,
    rgba(240,245,250,0.96),
    rgba(230,238,247,0.96)
  );

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1rem;
  backdrop-filter: blur(6px);
}

.termo-container {
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 2rem);

  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-medium);

  padding: 2rem 2.4rem;

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.termo-container h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.termo-info {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1rem;
}

/* ==========================================================
   TEXTO DO REGULAMENTO
========================================================== */
.termo-scroll {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.regulamento-conteudo h2 {
  font-size: 1rem;
  color: var(--gmx-purple);
  text-align: center;
  margin: 1.2rem 0 0.6rem;
}

.regulamento-conteudo h3 {
  font-size: 0.9rem;
  margin: 0.8rem 0 0.4rem;
}

.regulamento-conteudo p,
.regulamento-conteudo li {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================
   CHECKBOX
========================================================== */
.termo-check {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem;
  margin-top: 1rem;
  background: rgba(123, 43, 191, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(123, 43, 191, 0.15);
  font-size: 0.85rem;
}

.termo-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gmx-purple);
}

/* ==========================================================
   BOTÃO
========================================================== */
.termo-botoes {
  margin-top: 1.2rem;
}

.termo-btn-aceitar {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--gmx-purple), var(--gmx-purple-light));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.termo-btn-aceitar:disabled {
  background: #ccc;
}

/* ==========================================================
   MOBILE — SOMENTE MODAL
========================================================== */
@media (max-width: 480px) {

  .termo-container {
    padding: 1.2rem 1rem;
    border-radius: 18px;
  }

  .termo-container h3 {
    font-size: 1.25rem;
  }

  .termo-info {
    font-size: 0.85rem;
  }

  .termo-scroll {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .regulamento-conteudo h2 {
    font-size: 0.9rem;
  }

  .regulamento-conteudo p,
  .regulamento-conteudo li {
    font-size: 0.85rem;
  }

  .termo-check {
    font-size: 0.8rem;
    padding: 0.8rem;
  }

  .termo-btn-aceitar {
    font-size: 0.9rem;
    min-height: 46px;
  }
}

/* ==========================================================
   HELPERS
========================================================== */
.hidden {
  display: none !important;
}



.login-footer {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

.login-footer a {
  color: var(--gmx-purple);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.login-footer a:hover {
  text-decoration: underline;
}