:root {
  --primary:       #1a3c5e;
  --primary-light: #2563a8;
  --accent:        #f59e0b;
  --success:       #10b981;
  --danger:        #ef4444;
  --body-bg:       #f0f4f9;
  --card-bg:       #ffffff;
  --border:        #e2e8f0;
  --text-main:     #1e293b;
  --text-muted:    #64748b;
  --font:          'Plus Jakarta Sans', sans-serif;
  --mono:          'DM Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--body-bg);
  min-height: 100vh;
  display: flex;
}

/* ─────────────────────────────────────────
   LEFT PANEL — shared by signin & register
───────────────────────────────────────── */
.left-panel {
  width: 46%;
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

/* decorative blobs */
.left-panel::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -120px; right: -120px;
}

.left-panel::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -60px; left: -80px;
}

/* register-only decorative ring */
.lp-ring {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  bottom: 140px; right: -60px;
}

/* Brand */
.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.lp-brand-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.lp-brand-text strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.lp-brand-text span {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-family: var(--mono);
}

/* Hero text */
.lp-hero {
  position: relative;
  z-index: 1;
}

.lp-hero h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.lp-hero h2 span { color: var(--accent); }

.lp-hero p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 380px;
}

/* Feature list — signin */
.lp-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-feat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.lp-feat-text {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* Step indicator — register */
.reg-steps {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.reg-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 22px;
  position: relative;
}

.reg-step::after {
  content: '';
  position: absolute;
  left: 15px; top: 32px; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.12);
}

.reg-step:last-child::after { display: none; }

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.step-num.done {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.step-info strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.step-info span {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* Footer */
.lp-footer {
  font-size: 12px;
  color: rgba(255,255,255,.25);
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   RIGHT PANEL — shared by signin & register
───────────────────────────────────────── */
.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

/* register page — align top because form is taller */
.right-panel.top-align {
  align-items: flex-start;
}

/* Auth Card */
.auth-card {
  width: 100%;
  max-width: 420px;
  animation: fadeInUp .4s ease both;
}

/* wider card for register */
.auth-card.wide {
  max-width: 500px;
}

.auth-card-header {
  margin-bottom: 30px;
}

.auth-card-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-card-header p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Mobile brand — only shown on small screens */
.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-mobile-brand strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* ─────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────── */
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}

.form-check-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section title inside form (register) */
.form-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title i {
  font-size: 13px;
  color: var(--primary-light);
}

/* Input with leading icon */
.input-group-custom {
  position: relative;
}

.input-group-custom .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  z-index: 2;
  pointer-events: none;
}

.input-group-custom .form-control,
.input-group-custom .form-select {
  padding-left: 42px;
  padding-right: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 13.5px;
  height: 46px;
  color: var(--text-main);
  background: var(--card-bg);
  transition: border-color .2s, box-shadow .2s;
}

.input-group-custom .form-control:focus,
.input-group-custom .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3.5px rgba(37,99,168,.1);
  outline: none;
}

.input-group-custom .form-control.is-valid   { border-color: var(--success); }
.input-group-custom .form-control.is-invalid { border-color: var(--danger); }

/* Toggle password icon */
.toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: color .2s;
}

.toggle-pw:hover { color: var(--primary); }

/* Hint text */
.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Checkbox */
.form-check-input:checked {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

/* ─────────────────────────────────────────
   PASSWORD STRENGTH METER
───────────────────────────────────────── */
.pw-strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 5px;
}

.pw-bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  transition: background .3s;
}

.pw-bar.weak   { background: #ef4444; }
.pw-bar.medium { background: #f59e0b; }
.pw-bar.strong { background: #10b981; }

.pw-strength-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   AVATAR UPLOAD (register)
───────────────────────────────────────── */
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.avatar-upload:hover {
  border-color: var(--primary-light);
  background: #eff6ff;
}

.avatar-preview {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--text-muted);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
}

.avatar-info span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-auth {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .2px;
}

.btn-auth:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,168,.25);
}

.btn-auth:active { transform: translateY(0); }

.btn-social {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all .2s;
}

.btn-social:hover {
  border-color: var(--primary-light);
  background: #eff6ff;
  color: var(--primary);
}

.btn-social i { font-size: 18px; }

/* ─────────────────────────────────────────
   DIVIDER & LINKS
───────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

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

.divider span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.auth-bottom-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 28px;
}

.link-text {
  font-size: 13px;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}

.link-text:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ─────────────────────────────────────────
   ALERT
───────────────────────────────────────── */
.alert-auth {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.alert-auth.error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #dc2626;
}

.alert-auth.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

/* ─────────────────────────────────────────
   ANIMATION
───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 767.98px) {
  .left-panel { display: none; }

  .right-panel { padding: 32px 24px; }

  .auth-mobile-brand { display: flex; }
}
