/* ==========================================================================
   ElNader Cards Auth & Error Pages
   ========================================================================== */

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: #05060a;
  color: #f4f6fb;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(59, 130, 246, 0.2), transparent 55%),
    radial-gradient(700px 400px at 90% 100%, rgba(168, 85, 247, 0.18), transparent 50%),
    #05060a;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
}

.auth-brand {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.auth-card {
  padding: 2rem 1.75rem;
  animation: floatIn 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-card-wide {
  width: min(560px, 100%);
}

.auth-shell:has(.auth-card-wide) {
  width: min(560px, 100%);
}

.auth-card h1 {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.auth-sub {
  color: #8b93a8;
  margin-bottom: 1.5rem;
}

.auth-form .btn {
  margin-top: 0.25rem;
}

.auth-footer-text {
  text-align: center;
  margin-top: 1.35rem;
  color: #8b93a8;
  font-size: 0.9rem;
}

.auth-footer-text a {
  color: #60a5fa;
  font-weight: 600;
}

.error-page .error-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 2.5rem 2rem;
  text-align: center;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 60px rgba(59, 130, 246, 0.35);
  animation: glowPulse 2.4s ease-in-out infinite;
}

.error-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.error-card p {
  color: #8b93a8;
  margin-bottom: 1.5rem;
}

.error-card .hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(168, 85, 247, 0.4));
  }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 1.5rem 1.15rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
