/* ============================================================
   MEETBUYERS v2 — Auth pages (Login / Signup)
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* ── Left panel (branding) ─────────────────────────────── */
.auth-page__brand {
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-10) var(--space-12);
  overflow: hidden;
}

.auth-page__brand::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,166,255,.25) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}

.auth-page__brand::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(162,0,151,.2) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  pointer-events: none;
}

.auth-brand__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.auth-brand__logo-mark {
  width: 40px; height: 40px;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
}

.auth-brand__logo-text {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #fff;
}

.auth-brand__content {
  position: relative;
  z-index: 1;
}

.auth-brand__headline {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
}

.auth-brand__headline span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand__description {
  font-size: var(--text-base);
  color: rgba(255,255,255,.7);
  line-height: var(--leading-relaxed);
  max-width: 400px;
}

.auth-brand__stats {
  display: flex;
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.auth-brand__stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
}

.auth-brand__stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Right panel (form) ────────────────────────────────── */
.auth-page__form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-10);
  background: var(--color-surface);
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card__header {
  margin-bottom: var(--space-8);
}

.auth-card__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.auth-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-mid);
}

.auth-card__subtitle a {
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.auth-form__divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-muted);
  font-size: var(--text-xs);
}
.auth-form__divider::before,
.auth-form__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-form__forgot {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-align: right;
  margin-top: calc(-1 * var(--space-3));
}
.auth-form__forgot a {
  color: var(--color-primary);
  font-weight: var(--weight-medium);
}

.auth-form__submit {
  margin-top: var(--space-2);
}

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.role-option {
  position: relative;
}

.role-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.role-option__label:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-3);
}

.role-option input:checked + .role-option__label {
  border-color: var(--color-primary);
  background: var(--gradient-soft);
  box-shadow: 0 0 0 2px rgba(0,166,255,.2);
}

.role-option__icon {
  width: 40px; height: 40px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-primary);
}

.role-option__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
}

.role-option__desc {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Password strength */
.password-strength {
  margin-top: var(--space-2);
}

.password-strength__bar {
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.password-strength__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-base), background var(--transition-base);
  width: 0;
}

.password-strength__fill--weak   { background: var(--color-error); }
.password-strength__fill--fair   { background: var(--color-warning); }
.password-strength__fill--good   { background: var(--color-info); }
.password-strength__fill--strong { background: var(--color-success); }

.password-strength__label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-1);
  text-align: right;
}

/* Global form error */
.auth-error-banner {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  display: none;
}
.auth-error-banner.is-visible { display: flex; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-page__brand { display: none; }
  .auth-page__form-panel { padding: var(--space-8) var(--space-6); justify-content: flex-start; padding-top: var(--space-12); }
}

@media (max-width: 480px) {
  .auth-page__form-panel { padding: var(--space-6) var(--space-5); }
  .auth-form__row { grid-template-columns: 1fr; }
  .auth-card__title { font-size: var(--text-2xl); }
}
