/**
 * Midbank — Auth shell styles
 *
 * Used by signup.html + login.html. Intentionally minimal. The Clerk hosted
 * sign-in/sign-up pages handle the actual credential UI once we redirect.
 *
 * Palette: reuses design tokens from css/style.css (--gradient-primary etc.)
 * so this stays visually consistent with the marketing site.
 */

body {
  background:
    radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(236, 72, 153, 0.15), transparent 60%),
    var(--dark-900, #111827);
  min-height: 100vh;
  font-family: var(--font-primary, Inter, sans-serif);
  color: var(--white, #fff);
  margin: 0;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  gap: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 1.5rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(99, 102, 241, 0.25);
}

.auth-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.auth-logo img {
  height: 40px;
  width: auto;
}

.auth-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  background: var(--gradient-primary, linear-gradient(135deg, #6366f1, #8b5cf6 50%, #ec4899));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.auth-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.auth-mount {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.auth-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #ec4899;
  animation: auth-spin 0.9s linear infinite;
}

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

.auth-loading {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin: 0;
}

.auth-error {
  color: #fda4af;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

.auth-switch {
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}
.auth-switch a {
  color: #c084fc;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.35rem;
}
.auth-switch a:hover {
  color: #ec4899;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.auth-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Tighter on small screens */
@media (max-width: 480px) {
  .auth-shell { padding: 1.5rem 0.75rem 2.5rem; }
  .auth-card  { padding: 2rem 1.25rem; }
}
