/* =============================================
   auth.css — Modal de Autenticação
   CryptoMinds Pro IA | Dark Crypto Premium Design
   ============================================= */

/* ─── Overlay ─────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.auth-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── Modal Box ───────────────────────────────────────────── */
.auth-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-card);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.auth-overlay.active .auth-modal {
  transform: scale(1) translateY(0);
}

/* ─── Close Button ────────────────────────────────────────── */
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(248,249,255,0.5);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.auth-close:hover {
  background: rgba(255,255,255,0.14);
  color: #f8f9ff;
}

/* ─── Logo no Modal ───────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px var(--shadow-color-main);
}
.auth-logo-text {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}
.auth-logo-pro  { color: var(--btc-orange); }
.auth-logo-ia   {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Tabs ────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(248,249,255,0.45);
  transition: all 0.2s;
}
.auth-tab.active {
  background: rgba(238, 183, 20, 0.12);
  color: var(--btc-orange);
  border: 1px solid var(--border-hover);
}
.auth-tab:not(.active):hover { color: rgba(248,249,255,0.75); }

/* ─── Formulário ──────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(248,249,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Outfit', sans-serif;
}
.auth-field input {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  color: #f8f9ff;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
  outline: none;
}
.auth-field input:focus {
  border-color: var(--border-hover);
  background: rgba(238, 183, 20, 0.04);
  box-shadow: 0 0 0 3px rgba(238, 183, 20, 0.08);
}
.auth-field input::placeholder { color: rgba(248,249,255,0.25); }
.auth-field input.error { border-color: rgba(239,68,68,0.5); }

/* ─── Botão Principal ─────────────────────────────────────── */
.auth-btn-primary {
  padding: 13px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 24px var(--shadow-color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 36px var(--shadow-color-main);
}
.auth-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-btn-primary .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Divisor Social ──────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(248,249,255,0.25);
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ─── Botões Sociais ──────────────────────────────────────── */
.auth-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-social-btn {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #f8f9ff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-social-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.auth-social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Mensagem de Erro / Sucesso ──────────────────────────── */
.auth-message {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  display: none;
}
.auth-message.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
}
.auth-message.success {
  display: block;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #6ee7b7;
}

/* ─── Footer do Modal ─────────────────────────────────────── */
.auth-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: rgba(248,249,255,0.3);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
}
.auth-footer a {
  color: var(--btc-orange);
  text-decoration: none;
  opacity: 0.7;
}
.auth-footer a:hover { opacity: 1; }

/* ─── Navbar: Estado Logado ───────────────────────────────── */
.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  flex-shrink: 0;
}
.nav-avatar:hover { border-color: var(--border-hover); box-shadow: 0 0 12px var(--shadow-color-main); }
.nav-avatar img  { width: 100%; height: 100%; object-fit: cover; }
.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(248,249,255,0.8);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout {
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  color: rgba(239,68,68,0.7);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
}
.btn-logout:hover {
  background: rgba(239,68,68,0.08);
  border-color: #ef4444;
  color: #ef4444;
}

/* ─── Verificação de email ────────────────────────────────── */
.auth-verify-box {
  text-align: center;
  padding: 8px 0;
}
.auth-verify-box .verify-icon { font-size: 48px; margin-bottom: 12px; }
.auth-verify-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: #f8f9ff;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}
.auth-verify-box p { font-size: 13px; color: rgba(248,249,255,0.55); line-height: 1.6; font-family: 'Outfit', sans-serif; }
.auth-verify-box strong { color: var(--btc-orange); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-modal { padding: 28px 20px; }
  .auth-social-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Modal de Boas-vindas BingX
   ══════════════════════════════════════════════════════════ */

/* ─── Overlay ─────────────────────────────────────────────── */
.bingx-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 6000; /* Acima do modal de auth (5000) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bingx-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── Modal Box ───────────────────────────────────────────── */
.bingx-modal {
  background: var(--bg-card);
  border: 1px solid rgba(247, 147, 26, 0.25);
  border-radius: 24px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(247,147,26,0.08),
    0 32px 64px rgba(0,0,0,0.6),
    0 0 80px rgba(247,147,26,0.06);
  text-align: center;
  transform: scale(0.88) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bingx-overlay.active .bingx-modal {
  transform: scale(1) translateY(0);
}

/* ─── Botão Fechar ────────────────────────────────────────── */
.bingx-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(248,249,255,0.45);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.bingx-close:hover {
  background: rgba(255,255,255,0.14);
  color: #f8f9ff;
}

/* ─── Ícone de celebração ─────────────────────────────────── */
.bingx-celebration {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
  animation: bingx-bounce 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}
@keyframes bingx-bounce {
  from { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ─── Título e Subtítulo ──────────────────────────────────── */
.bingx-title {
  font-size: 20px;
  font-weight: 800;
  color: #f8f9ff;
  margin: 0 0 8px;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
}
.bingx-subtitle {
  font-size: 14px;
  color: rgba(248,249,255,0.55);
  margin: 0;
  font-family: 'Outfit', sans-serif;
}
.bingx-subtitle strong { color: var(--btc-orange); font-weight: 700; }

/* ─── Divisor ─────────────────────────────────────────────── */
.bingx-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247,147,26,0.3), transparent);
  margin: 24px 0;
}

/* ─── Badge "Convite Especial" ────────────────────────────── */
.bingx-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(247,147,26,0.12);
  border: 1px solid rgba(247,147,26,0.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--btc-orange);
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ─── Marca BingX ─────────────────────────────────────────── */
.bingx-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.bingx-brand-icon {
  font-size: 28px;
  color: var(--btc-orange);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(247,147,26,0.5));
}
.bingx-brand-name {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #f7931a 0%, #ffcc44 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* ─── Texto do convite ────────────────────────────────────── */
.bingx-invite-text {
  font-size: 13px;
  color: rgba(248,249,255,0.55);
  line-height: 1.7;
  margin: 0 0 24px;
  font-family: 'Outfit', sans-serif;
}
.bingx-invite-text strong {
  color: rgba(248,249,255,0.85);
  font-weight: 700;
}

/* ─── Botão principal (Inscrever) ─────────────────────────── */
.bingx-btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 28px var(--shadow-color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bingx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--shadow-color-main);
}
.bingx-btn-primary:active { transform: translateY(0); }

/* ─── Botão secundário (Já sou inscrito) ──────────────────── */
.bingx-btn-secondary {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: rgba(248,249,255,0.4);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.bingx-btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(248,249,255,0.7);
  border-color: rgba(255,255,255,0.15);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .bingx-modal { padding: 32px 20px 24px; }
  .bingx-title  { font-size: 18px; }
}
