/* /css/auth.css */
.auth-page {
  min-height: 100vh;
  background: var(--color-bg);
}

/* Área principal da autenticação */
.auth-wrap {
  padding: 28px 0 60px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  justify-items: center;
}

/* Card */
.auth-card {
  width: min(520px, 92vw);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

.auth-card-body {
  padding: 26px;
}

/* Títulos */
.auth-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.auth-subtitle {
  color: var(--color-text-secondary);
  margin: 0 0 18px;
  font-size: 0.95rem;
}

/* Ajustes leves no Bootstrap */
.auth-card .form-label {
  font-weight: 600;
}

.auth-card .btn {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

/* Rodapé do card */
.auth-footer {
  margin-top: 14px;
  font-size: 0.95rem;
  text-align: center;
}

.auth-footer a {
  font-weight: 700;
}

.auth-action-stack {
  display: grid;
  gap: 10px;
}

.auth-hint {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  margin: -2px 0 16px;
}

/* Matrix: mantém por trás sem quebrar clique */
#matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Conteúdo acima do Matrix */
.site-header,
.auth-wrap,
.footer {
  position: relative;
  z-index: 1;
}

/* Opcional: quando Matrix estiver ligado, dá um “glass” no card.
   Se o seu matrix.js adiciona/remover classe no body, use a classe correspondente.
   Se não tiver, ignore esta parte. */
.matrix-on .auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

/*estilizar botão login e cadastro*/
/* =========================
   WhatsDesk Buttons (Auth)
   ========================= */

.wd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  padding: 12px 16px;

  border-radius: 999px; /* pill */
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.2px;

  border: 1px solid transparent;
  text-decoration: none;

  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.wd-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14);
  opacity: 0.98;
}

.wd-btn:active {
  transform: translateY(0px);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
}

/* Botão sólido (igual CTA) */
.wd-btn-solid {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff !important;
}

/* Botão ghost (igual menu) */
.wd-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.wd-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.12);
}

/* Versão outline (pra ações secundárias dentro do card) */
.wd-btn-outline {
  background: transparent;
  color: var(--color-primary) !important;
  border-color: rgba(37, 211, 102, 0.55);
}

.wd-btn-outline:hover {
  background: rgba(37, 211, 102, 0.08);
}

/* Dentro do card (fundo branco) o ghost precisa ser dark */
.auth-card .wd-btn-ghost {
  background: rgba(2, 6, 23, 0.04);
  color: var(--color-text) !important;
  border-color: rgba(2, 6, 23, 0.12);
}

.auth-card .wd-btn-ghost:hover {
  background: rgba(2, 6, 23, 0.06);
}
