/* ============================================
   AUTH PAGES (Register + Login)
   ============================================ */

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

/* ---- LEFT PANEL ---- */
.auth-left {
  background: #D6ECF8;
  border-right: 1px solid var(--border);
  padding: 60px clamp(30px, 5vw, 70px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(21,101,192,0.1), transparent 70%);
  pointer-events: none;
}

.auth-left::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(2,136,209,0.08), transparent 70%);
  pointer-events: none;
}

.auth-left-inner { position: relative; z-index: 1; max-width: 440px; }

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.auth-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.abi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-benefit-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.auth-benefit-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.auth-testimonial {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.auth-testimonial img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-testimonial p {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.auth-testimonial strong {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- RIGHT PANEL ---- */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px clamp(20px, 4vw, 60px);
  background: var(--bg-white);
  overflow-y: auto;
}

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

.auth-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-form-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Role selector */
.role-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.role-btn {
  flex: 1;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}

.role-btn.active {
  background: var(--surface-3);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-right: 44px;
}

.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  font-size: 1rem;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pass-toggle:hover { opacity: 1; }

.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.ps-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.ps-fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: var(--accent);
}

.password-strength span {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-check label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

.social-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

/* ---- LOGIN SPECIFIC ---- */
.login-form-card {
  width: 100%;
  max-width: 440px;
}

.login-form-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.forgot-link {
  font-size: 0.82rem;
  color: var(--primary-light);
  text-align: right;
  display: block;
  margin-top: -10px;
}

/* ============================================
   RESPONSIVE AUTH
   ============================================ */
@media (max-width: 860px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    min-height: 100vh;
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .social-btns { grid-template-columns: 1fr; }
  .role-selector { flex-direction: column; }
}
