/* ===== Theme tokens (optional if already defined elsewhere) ===== */
:root {
  --nx-purple-600: #5b21b6;
  --nx-purple-700: #4c1d95;
  --nx-blue-500:  #3b82f6;
  --nx-blue-600:  #2563eb;
  --nx-blue-700:  #1d4ed8;
  --nx-soft:      #6b7280;
}

/* ===== Shared base for NinjaX buttons (login + generic) ===== */
:where(.nx-login-btn, .nx-btn) {
  all: unset;
  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;

  font: 800 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;

  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.15);

  transition:
    background-position 220ms ease,
    transform 140ms ease,
    box-shadow 200ms ease,
    filter 160ms ease,
    color 160ms ease;
}

/* Primary gradient (purple ? blue) shared */
.nx-login-btn,
.nx-btn--primary {
  background-image: linear-gradient(135deg, var(--nx-purple-600) 0%, var(--nx-blue-500) 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
}

.nx-login-btn:hover,
.nx-btn--primary:hover {
  background-image: linear-gradient(135deg, var(--nx-purple-700) 0%, var(--nx-blue-700) 100%);
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(29,78,216,0.32),
    0 3px 10px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.22);
  filter: brightness(1.03) saturate(1.04);
}

:where(.nx-login-btn, .nx-btn):active { transform: translateY(0); }

:where(.nx-login-btn, .nx-btn):focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(76, 29, 149, 0.5),
    0 0 0 6px rgba(29, 78, 216, 0.35),
    0 10px 24px rgba(29, 78, 216, 0.25);
}

/* Disabled state (attribute or helper class) */
:where(.nx-login-btn, .nx-btn)[disabled],
:where(.nx-login-btn, .nx-btn).is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Optional: make buttons full-width on very small screens */
@media (max-width: 420px) {
  .nx-login-btn,
  .nx-btn { width: 100%; }
}

/* Utility spacing (if you still need it) */
.nx-padding { margin-bottom: 200px; }

/* ===== Auth Header (matches homepage) ===== */
.nx-authhead,
.nx-authhead * { box-sizing: border-box; }

.nx-authhead { text-align: center; margin: 0 0 24px; }

.nx-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--nx-purple-600);
  background: rgba(109, 40, 217, .08);
  border: 1px solid rgba(109, 40, 217, .20);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.nx-title {
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--nx-purple-700), var(--nx-blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nx-header-accent {
  width: 110px;
  height: 4px;
  margin: 14px auto 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nx-purple-700), var(--nx-blue-600));
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}

.nx-slogan {
  margin: 0;
  max-width: 60ch;
  margin-inline: auto;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.6;
  color: var(--nx-soft);
}

/* Small-screen tweaks (merged) */
@media (max-width: 420px) {
  .nx-authhead { margin-bottom: 18px; }
  .nx-header-accent { margin: 12px auto 14px; width: 96px; }
}

/* Form actions row + spacing for grouped buttons */
.nx-form-actions { text-align: center; margin-top: 12px; }
.nx-form-actions .nx-btn { margin: 0 6px; }

/* Secondary button variant (pairs with primary) */
.nx-btn--secondary {
  background: #f3f4f6;
  color: var(--nx-purple-700);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.15);
}
.nx-btn--secondary:hover {
  background: #e9eaf0;
  color: var(--nx-blue-600);
  transform: translateY(-1px);
}
.nx-btn--secondary:active { transform: translateY(0); }
.nx-btn--secondary:focus-visible {
  box-shadow:
    0 0 0 3px rgba(76,29,149,0.35),
    0 0 0 6px rgba(37,99,235,0.25),
    0 6px 16px rgba(37,99,235,0.18);
}
