/* ============================================
   Marvel Advise — Auth (Sign in / Sign up)
   Re-uses the landing Marvel design language so the
   login / register screen matches the main page.
   Loaded after style.css + landing.css + marvel-theme.css.
   ============================================ */

.auth-marvel {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--mv-bg, #08070a);
  color: #f0f0f5;
  min-height: 100vh;
}

/* ---- Full-viewport stage with the landing ambient background ---- */
.auth-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

/* (.landing-hero-bg + orbs/spotlight/grid/noise are styled by
   landing.css + marvel-theme.css via the .landing-* body classes) */

/* ---- Auth card ---- */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 2.75rem 2.5rem;
  background: linear-gradient(160deg, rgba(26, 16, 18, 0.85) 0%, rgba(15, 10, 12, 0.92) 100%);
  border: 1px solid rgba(236, 29, 36, 0.18);
  border-radius: 22px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(236, 29, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

/* Red glow accent line at the top of the card */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mv-red-light, #ff4d52), transparent);
  opacity: 0.7;
}

/* ---- Header ---- */
.auth-card .form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .form-header h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ff8a8d 0%, #ff4d52 50%, #ec1d24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-card .form-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- Tabs (segmented pill) ---- */
.auth-card .form-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.auth-card .form-tab {
  flex: 1;
  padding: 0.7rem 1rem;
  text-align: center;
  border: none;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-card .form-tab:hover {
  color: #fff;
}

.auth-card .form-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--mv-red, #ec1d24) 0%, var(--mv-red-dark, #b3151b) 100%);
  box-shadow: 0 6px 20px rgba(236, 29, 36, 0.35);
}

/* ---- Inputs ---- */
.auth-card .form-group {
  margin-bottom: 1.25rem;
}

.auth-card .form-group label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-card .form-group input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #fff;
}

.auth-card .form-group input:focus {
  border-color: rgba(236, 29, 36, 0.6);
  box-shadow: 0 0 0 3px rgba(236, 29, 36, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.auth-card .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* ---- Submit button ---- */
.auth-card .btn-primary {
  margin-top: 0.5rem;
  padding: 0.95rem;
  font-size: 1.02rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mv-red, #ec1d24) 0%, var(--mv-red-dark, #b3151b) 100%);
  box-shadow: 0 8px 32px rgba(236, 29, 36, 0.35);
}

.auth-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(236, 29, 36, 0.5);
}

/* ---- Messages ---- */
.auth-card .form-error {
  display: block;
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.auth-card .form-error li {
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff8a8d;
}

.auth-card .form-error li.success {
  background: rgba(40, 167, 69, 0.12);
  border-color: rgba(40, 167, 69, 0.35);
  color: #5dd879;
}

/* ---- Footer note ---- */
.auth-card .form-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-card .form-footer p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  margin-bottom: 0;
}

.auth-card .form-footer a {
  color: var(--mv-red-light, #ff4d52);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* The landing nav collapses into a burger menu on mobile, but the auth
     page has no mobile menu — keep a single "Back to home" CTA visible. */
  .auth-marvel .landing-nav {
    display: flex !important;
    gap: 0.75rem;
  }
  .auth-marvel .landing-nav a:not(.landing-cta-nav) {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-hero {
    padding: 6rem 1rem 3rem;
  }
  .auth-card {
    padding: 1.85rem 1.4rem;
    border-radius: 18px;
  }
  .auth-card .form-header h2 {
    font-size: 1.55rem;
  }
}
