/* ═══════════════════════════════════════════════════════════
   AUTH THEME — Tema escuro premium para login, cadastro,
   recuperar senha e redefinir senha
   Aplica o mesmo visual da tela "Recuperar senha" em todas
═══════════════════════════════════════════════════════════ */

/* ── Base da tela ── */
.ax-root {
  min-height: 100vh;
  background: #0f0c1a;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Background com gradiente e blobs ── */
.ax-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c1a 0%, #1a1035 40%, #0d1a2e 100%);
}

.ax-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.ax-b1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -100px;
  background: radial-gradient(#6C4DFF, #4f46e5);
  animation-delay: 0s;
}

.ax-b2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(#7c3aed, #1d4ed8);
  animation-delay: 3s;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.08); }
}

/* Grid sutil de fundo */
.ax-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,77,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,77,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Shell principal (grid 2 colunas) ── */
.ax-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Painel esquerdo ── */
.ax-left {
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  color: #ffffff;
}

.ax-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: auto;
  cursor: pointer;
}

.ax-logo-txt {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.ax-logo-txt em {
  color: #8b5cf6;
  font-style: normal;
}

.ax-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.ax-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b5cf6;
  margin-bottom: 16px;
}

.ax-h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -1px;
}

.ax-grad {
  background: linear-gradient(135deg, #a78bfa, #6C4DFF, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ax-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 0 36px;
}

/* Cards de features no painel esquerdo */
.ax-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ax-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  transition: background 0.2s;
}

.ax-card:hover {
  background: rgba(255,255,255,0.1);
}

.ax-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ax-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.ax-card span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.ax-left-footer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 32px;
}

/* ── Painel direito (formulário) ── */
.ax-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
}

.ax-form-wrap {
  width: 100%;
  max-width: 420px;
}

/* Header do formulário */
.ax-form-header {
  margin-bottom: 32px;
}

.ax-form-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.ax-form-header p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Formulário */
.ax-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ax-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ax-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

.ax-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ax-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  flex-shrink: 0;
}

.ax-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.ax-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.ax-input:focus {
  border-color: #6C4DFF;
  background: rgba(108,77,255,0.1);
  box-shadow: 0 0 0 3px rgba(108,77,255,0.2);
}

/* Botão principal */
.ax-btn {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #6C4DFF, #4f46e5);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 20px rgba(108,77,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin-top: 4px;
}

.ax-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(108,77,255,0.5);
}

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

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

/* Divisor "ou" */
.ax-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.2);
  font-size: 0.82rem;
}

.ax-divider::before,
.ax-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.ax-divider span {
  background: transparent;
  padding: 0 4px;
  color: rgba(255,255,255,0.3);
}

/* Links do formulário */
.ax-link-row {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}

.ax-link-row a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.ax-link-row a:hover {
  color: #c4b5fd;
}

/* Mensagem de erro */
.auth-err {
  font-size: 0.83rem;
  color: #f87171;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  display: none;
}

.auth-err:not(:empty) {
  display: block;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Select escuro */
select.ax-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* ── Logo mobile (só aparece em mobile) ── */
.ax-mobile-logo {
  display: none;
}

/* ── Barra de força de senha ── */
.ax-pwd-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}

.ax-pwd-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.ax-pwd-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
  color: rgba(255,255,255,0.4);
}

/* ── Responsivo Mobile ── */
@media (max-width: 768px) {
  .ax-shell {
    grid-template-columns: 1fr !important;
    min-height: 100vh;
  }

  .ax-left {
    display: none !important;
  }

  .ax-right {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    align-items: flex-start !important;
    min-height: 100vh;
  }

  .ax-form-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 32px 24px 48px !important;
  }

  .ax-mobile-logo {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
  }

  .ax-form-header h2 {
    font-size: 1.6rem !important;
  }

  .ax-input {
    font-size: 16px !important;
  }
}

/* ── Correções adicionais ── */

/* Centralizar "Esqueci minha senha" */
.ax-link-row {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

/* Inputs mais visíveis — borda mais clara */
.ax-input {
  border-color: rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.09) !important;
}

/* Texto dentro dos inputs mais visível */
.ax-input, .ax-input::placeholder {
  color: rgba(255,255,255,0.9) !important;
}
.ax-input::placeholder {
  color: rgba(255,255,255,0.3) !important;
}

/* Labels mais visíveis */
.ax-field label {
  color: rgba(255,255,255,0.8) !important;
}

/* Subtítulo do form header mais visível */
.ax-form-header p {
  color: rgba(255,255,255,0.55) !important;
}
