/* ================================================================
   Auth Pages — Login & Register
   ================================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* Left panel — illustration/branding */
.auth-panel-left {
  width: 440px;
  background: linear-gradient(160deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.auth-panel-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}
.auth-panel-left::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.auth-brand-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.auth-brand-icon svg { width: 20px; height: 20px; color: #fff; }
.auth-brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.auth-panel-content { position: relative; z-index: 1; }
.auth-panel-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.auth-panel-content p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.auth-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.auth-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.auth-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}
.auth-feature-icon svg { width: 20px; height: 20px; color: #fff; }
.auth-feature-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.auth-feature-text p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

/* Right panel — form */
.auth-panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--surface);
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}
.auth-form-heading h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-form-heading p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 20px;
}
.auth-switch a { font-weight: 500; }

/* Role selector (register page) */
.role-select-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.role-option { display: none; }
.role-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  text-align: center;
}
.role-label svg { width: 20px; height: 20px; color: var(--text-tertiary); transition: color var(--t-fast); }
.role-label span { font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); transition: color var(--t-fast); }
.role-option:checked + .role-label {
  border-color: var(--primary);
  background: var(--blue-50);
}
.role-option:checked + .role-label svg { color: var(--primary); }
.role-option:checked + .role-label span { color: var(--primary); }

/* Submit button full width */
.auth-submit { width: 100%; height: 42px; font-size: 0.9375rem; justify-content: center; }

/* ── Mobile responsive ── */
@media (max-width: 900px) {
  .auth-panel-left { width: 340px; padding: 36px; }
}

@media (max-width: 700px) {
  .auth-page { flex-direction: column; }
  .auth-panel-left {
    width: 100%;
    padding: 32px 24px;
  }
  .auth-panel-content h2 { font-size: 1.375rem; }
  .auth-panel-stats { display: none; }
  .auth-panel-right { padding: 32px 24px; align-items: flex-start; }
  .auth-form-wrap { max-width: 100%; }
}
