/* ===============================
   RESET & VARIÁVEIS
================================ */
:root {
  --bg-main: #0b0e14;
  --bg-card: #141a24;
  --bg-input: #0f1420;

  --border: #263044;

  --text-main: #e8ecf1;
  --text-muted: #9aa4b2;

  --primary: #2ecc71;
  --primary-dark: #27ae60;

  --danger: #ff5f5f;
}

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

/* ===============================
   BODY & BACKGROUND
================================ */
body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top, #141a24, #0b0e14 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* Fundo decorativo */
.background {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(46, 204, 113, 0.04), transparent 60%);
  pointer-events: none;
}

/* ===============================
   CONTAINER
================================ */
.container {
  width: 100%;
  max-width: 420px;
  padding: 24px;
}

/* ===============================
   CARD
================================ */
.login-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 36px 30px;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   LOGO
================================ */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.logo img {
  width: 56px;
  height: 56px;
}

/* ===============================
   TEXTO
================================ */
.titulo {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.instrucao {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 28px;
}

/* ===============================
   FORM
================================ */
.form-login {
  display: flex;
  flex-direction: column;
}

/* Campo genérico */
.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.campo label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ===============================
   INPUTS
================================ */
input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #6f7888;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.15);
}

/* ===============================
   SENHA
================================ */
.senha-wrapper {
  position: relative;
}

#toggleSenha {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: #7d8797;
  cursor: pointer;
  transition: fill 0.2s ease;
}

#toggleSenha:hover {
  fill: var(--primary);
}

/* ===============================
   BOTÃO
================================ */
#entrar {
  height: 48px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 12px;
  color: #0b0e14;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#entrar:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(46, 204, 113, 0.35);
}

#entrar:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ===============================
   ERRO
================================ */
.erro {
  margin-top: 12px;
  font-size: 12px;
  color: var(--danger);
  text-align: center;
  min-height: 14px;
}

/* ===============================
   FOOTER
================================ */
.footer-login {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-login a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.footer-login a:hover {
  text-decoration: underline;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 480px) {
  .container {
    padding: 0;
  }

  .login-card {
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ================================
   OVERLAY DE PAGAMENTO — PREMIUM
================================ */

#overlayPagamento {
  position: fixed;
  inset: 0;
  background: rgba(11, 14, 20, 0.85); /* usa cor do fundo principal com opacidade */
  backdrop-filter: blur(6px); /* desfoque premium */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease forwards;
}

/* Caixa principal do overlay */
.overlay-content {
  background: var(--bg-card); /* mesma cor do login card */
  padding: 36px 32px;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: scaleUp 0.35s ease forwards;
  position: relative;
  overflow: hidden;
}

/* Detalhe elegante no topo */
.overlay-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* Título */
.overlay-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

/* Texto principal */
.overlay-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Observação */
.overlay-content .observacao {
  font-size: 0.82rem;
  color: #777;
  margin-top: 6px;
  margin-bottom: 24px;
}

/* Área dos botões */
.botoes {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botões base */
.btn-pagar,
.btn-continuar {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Botão pagar — destaque premium */
.btn-pagar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0b0e14;
  box-shadow:
    0 8px 20px rgba(46, 204, 113, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

/* Efeito hover pagar */
.btn-pagar:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(46, 204, 113, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Botão continuar — neutro discreto */
.btn-continuar {
  background: var(--bg-input);
  color: var(--text-main);
  box-shadow:
    0 6px 15px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.btn-continuar:hover {
  background: var(--bg-card);
  transform: translateY(-1px);
}

/* Quando só existir o botão pagar (bloqueio total) */
.botoes:has(.btn-pagar):not(:has(.btn-continuar)) .btn-pagar {
  width: 100%;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile first */
@media (max-width: 480px) {
  .overlay-content {
    margin: 0 16px;
    padding: 28px 22px;
  }

  .botoes {
    flex-direction: column;
  }
}

/* Link do suporte */
.overlay-content .suporte {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #555;
}

.overlay-content .suporte a {
  color: #00c853; /* mesma cor do botão pagar para consistência */
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.overlay-content .suporte a:hover {
  color: #00e676;
}
