/* ==========================================================================
   Login / auth split-screen layout
   ========================================================================== */

body.auth-body {
  min-height: 100vh;
  display: flex;
  background: var(--bg-gradient);
}

.auth-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.auth-hero {
  position: relative;
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 50%, #e0f2fe 100%);
  color: var(--ink-900);
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-hero::before, .auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.6;
}
.auth-hero::before {
  width: 420px; height: 420px; background: radial-gradient(circle, rgba(129,140,248,0.35), transparent 70%);
  top: -140px; right: -120px;
}
.auth-hero::after {
  width: 360px; height: 360px; background: radial-gradient(circle, rgba(192,132,252,0.3), transparent 70%);
  bottom: -160px; left: -100px;
}

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

.auth-hero .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; }
.auth-hero .brand-row .brand-mark {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-brand);
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.4);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: #fff;
}
.auth-hero .brand-row strong { font-size: 16.5px; font-weight: 800; color: var(--ink-900); }
.auth-hero .brand-row span { display: block; font-size: 11.5px; color: var(--ink-500); }

.auth-hero h1 { font-size: 32px; font-weight: 800; line-height: 1.25; max-width: 460px; color: var(--ink-900); letter-spacing: -0.02em; }
.auth-hero p.lead { color: var(--ink-600); font-size: 14.5px; max-width: 440px; margin-top: 14px; line-height: 1.6; }

.auth-feature-list { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.auth-feature-item { display: flex; align-items: flex-start; gap: 12px; }
.auth-feature-item .feat-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.7);
  border: 1px solid rgba(79,70,229,0.15);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--primary); flex-shrink: 0;
}
.auth-feature-item strong { display: block; font-size: 13.3px; color: var(--ink-900); font-weight: 700; }
.auth-feature-item span { font-size: 12px; color: var(--ink-500); }

.auth-hero-footer { position: relative; z-index: 1; font-size: 11.5px; color: var(--ink-500); }

.auth-form-panel {
  display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: var(--bg-app);
}

.auth-form-card { width: 100%; max-width: 400px; }
.auth-form-card .auth-title { font-size: 23px; font-weight: 800; color: var(--ink-900); }
.auth-form-card .auth-subtitle { color: var(--ink-500); font-size: 13.3px; margin-top: 4px; margin-bottom: 28px; }

.role-toggle { display: flex; background: var(--ink-100); border-radius: var(--radius-md); padding: 4px; margin-bottom: 22px; }
.role-toggle button {
  flex: 1; border: none; background: transparent; padding: 10px 14px; border-radius: 9px;
  font-size: 13.3px; font-weight: 700; color: var(--ink-600); cursor: pointer; transition: all 0.15s ease;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.role-toggle button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

.auth-demo-hint {
  margin-top: 18px; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--info-bg); color: var(--info-fg); font-size: 11.8px; line-height: 1.5;
}

.password-field-wrap { position: relative; }
.password-toggle-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--ink-400); font-size: 15px; cursor: pointer; padding: 4px;
}
.password-toggle-btn:hover { color: var(--ink-700); }
