/* =====================================================
   OHC — Auth Pages Styles
   ===================================================== */

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

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

/* ─── LEFT PANEL ─── */
.auth-panel {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: var(--sp-3xl);
}
.auth-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.auth-panel-content { position: relative; z-index: 1; max-width: 420px; }

/* Illustration */
.auth-illustration {
  position: relative;
  height: 200px;
  margin: var(--sp-2xl) 0;
}
.ill-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.ill-circle-1 {
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.3);
  top: -40px; left: -40px;
}
.ill-circle-2 {
  width: 120px; height: 120px;
  background: rgba(204,20,20,0.5);
  bottom: -20px; right: -20px;
}

.ill-card {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-lg);
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: white;
  min-width: 180px;
}
.ill-card strong { font-size: 0.85rem; display: block; }
.ill-card p { font-size: 0.72rem; color: rgba(255,255,255,0.7); margin: 0; }
.ill-card-icon {
  width: 36px; height: 36px;
  background: var(--primary-light);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ill-card-icon svg { width: 18px; height: 18px; color: white; }
.ill-card-icon.accent { background: var(--accent); }
.ill-card-icon.success { background: var(--success); }

.ill-card { top: 0; left: 0; animation: fadeUp 0.6s ease 0.2s both; }
.ill-card-2 { top: 70px; right: 0; animation: fadeUp 0.6s ease 0.4s both; }
.ill-card-3 { bottom: 0; left: 20px; animation: fadeUp 0.6s ease 0.6s both; }

.auth-panel-stats { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--sp-lg); }

/* ─── RIGHT SIDE ─── */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2xl);
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: var(--sp-xl);
  border: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--ease);
}
.auth-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(27,46,107,0.3);
}

.auth-header { margin-bottom: var(--sp-xl); }
.auth-header h2 { margin-bottom: 4px; }
.auth-header p { color: var(--text-muted); }

/* Input with icon */
.input-with-icon { position: relative; }
.input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.input-with-icon .form-control { padding-left: 42px; }
.input-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; color: var(--text-muted);
  padding: 0;
  transition: var(--ease-fast);
}
.input-toggle:hover { color: var(--primary); }
.input-toggle svg { width: 18px; height: 18px; }

.input-prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}
.input-with-icon:has(.input-prefix) .form-control { padding-left: 72px; }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label input { accent-color: var(--primary); }

/* Divider */
.auth-divider {
  text-align: center;
  position: relative;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* Social Auth */
.social-auth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
}
.social-auth-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }

/* OTP */
.otp-input-group {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
}
.otp-digit {
  width: 50px; height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  transition: var(--ease);
}
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(27,46,107,0.1); outline: none; }
.otp-digit.filled { border-color: var(--success); background: #D1FAE5; color: #065F46; }

/* Brand in auth */
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), #FF4444);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(204,20,20,0.4);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: white; line-height: 1; }
.brand-sub { font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* Register extras */
.strength-bar { height: 4px; border-radius: 2px; background: var(--border); margin-top: 6px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s ease, background 0.3s ease; width: 0%; }
.strength-text { font-size: 0.72rem; margin-top: 4px; }

/* Responsive */
@media(max-width:768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-side { padding: var(--sp-lg); }
}
