/* MJT 2026 — SCU panel + auth theme polish */

.scu-page,
body.mjt-account-page .woocommerce-account,
body.scu-active-page .site-main {
  min-height: 60vh;
}

.scu-page .scu-panel,
.scu-page .scu-auth__card,
body.mjt-account-page .mjt-account {
  font-family: var(--mjt-font-body);
  color: var(--mjt-color-text);
}

.scu-page .scu-panel__title,
.scu-page .scu-auth__title,
.scu-page .scu-stat__value,
.mjt-auth__title {
  font-family: var(--mjt-font-display);
  color: var(--mjt-color-text);
}

.scu-panel--premium .scu-panel__content {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mjt-color-surface) 96%, var(--mjt-color-accent)) 0%, var(--mjt-color-surface) 140px);
}

/* Ensure SCU/WC account content is visible on dark/light */
.scu-page .scu-field input,
.scu-page .scu-btn,
.mjt-account-page .input-text,
.mjt-account-page .woocommerce-Input {
  color: var(--mjt-color-text);
  background: var(--mjt-color-input-bg, var(--mjt-color-surface));
}

.scu-page .scu-auth__card,
.scu-page .scu-panel__sidebar,
.scu-page .scu-panel__content,
.mjt-account__content,
.mjt-account-nav {
  opacity: 1;
  visibility: visible;
}

/* Premium auth (WC fallback before redirect) */
.mjt-auth {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.mjt-auth__intro {
  text-align: center;
  margin-bottom: 2rem;
}
.mjt-auth__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mjt-auth__lead {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--mjt-color-text-muted);
  line-height: 1.6;
  font-size: 1.02rem;
}
.mjt-auth__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .mjt-auth__grid { grid-template-columns: 1fr 1fr; }
}
.mjt-auth__panel {
  background: var(--mjt-color-surface);
  border: 1px solid var(--mjt-color-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--mjt-shadow-md);
}
.mjt-auth__panel h3 {
  margin: 0 0 1.25rem;
  font-family: var(--mjt-font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.mjt-auth__panel .form-row { margin-bottom: 1rem; }
.mjt-auth__panel label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.mjt-auth__panel .input-text,
.mjt-auth__panel input[type="email"],
.mjt-auth__panel input[type="password"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--mjt-color-border);
  border-radius: 12px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mjt-auth__panel .input-text:focus {
  outline: none;
  border-color: var(--mjt-color-accent);
  box-shadow: 0 0 0 4px var(--mjt-color-accent-soft);
}

.scu-dashboard .scu-stat {
  opacity: 0;
  animation: scuFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes scuFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .scu-dashboard .scu-stat {
    animation: none;
    opacity: 1;
  }
}
