/* ===================================================
   Register-bootstrap.css — Custom overrides on top of Bootstrap 5
   Place at: public/css/Register-bootstrap.css
   Tujuan: mempertahankan tampilan asli (Register.css) sambil
   memakai struktur/utility class Bootstrap.
=================================================== */

body {
  min-height: 100vh;
  background: #eeedf8;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Outer card wrapper ── */
.auth-wrapper {
  max-width: 960px;
  min-height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(80, 60, 200, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ================================================
   LEFT PANEL
================================================ */
.left-panel {
  background: linear-gradient(145deg, #4f35d2 0%, #6c3ee8 55%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}

.left-inner {
  position: relative;
  z-index: 2;
  padding: 2.75rem 2.5rem;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.brand span {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.left-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.left-hero p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 280px;
}

.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.feature-list li span {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.blob-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  z-index: 1;
}

.bc1 { width: 260px; height: 260px; bottom: -60px; right: -60px; }
.bc2 { width: 160px; height: 160px; top: 80px; right: 30px; }

/* ================================================
   RIGHT PANEL
================================================ */
.right-panel { background: #ffffff; }

.right-inner {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 2.75rem 2rem;
  margin: 0 auto;
}

/* Team badge */
.av {
  width: 30px;
  height: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid #fff;
  margin-left: -6px;
  color: #fff;
}
.av:first-child { margin-left: 0; }
.av-a { background: #6c3ee8; }
.av-b { background: #8b5cf6; }
.av-c { background: #a78bfa; }

.team-badge > span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6c3ee8;
  background: #f0ebff;
  padding: 4px 12px;
  border-radius: 99px;
}

/* Form header */
.form-header h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: #0f0a2e;
  letter-spacing: -0.03em;
}
.form-header p { font-size: 0.875rem; color: #6b7280; }

/* Alerts (pakai Bootstrap alert, warna disamakan) */
.alert-error,
.alert-success {
  font-size: 0.8375rem;
  font-weight: 500;
  border-radius: 10px;
}
.alert-error {
  background: #fff1f0;
  border-color: #fecaca;
  color: #b91c1c;
}
.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Form groups / inputs */
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.inp-icon {
  color: #9ca3af;
  z-index: 5;
}

.input-wrap input.form-control {
  height: 46px;
  padding-left: 40px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.875rem;
  color: #111827;
}

.input-wrap input.form-control::placeholder { color: #d1d5db; }

.input-wrap input.form-control:hover {
  border-color: #c4b5fd;
  background: #fff;
}

.input-wrap input.form-control:focus {
  border-color: #6c3ee8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108, 62, 232, 0.1);
}

.input-wrap:focus-within .inp-icon { color: #6c3ee8; }

.input-wrap.has-toggle input.form-control { padding-right: 42px; }

.input-wrap.is-error input.form-control {
  border-color: #f87171;
  background: #fff8f8;
}
.input-wrap.is-error input.form-control:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Password toggle button */
.toggle-pw {
  color: #9ca3af;
  z-index: 5;
}
.toggle-pw:hover { color: #6c3ee8; }

/* Password strength */
.strength-bar {
  height: 3px;
  background: #f3f4f6;
  border-radius: 99px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 0.3s, background-color 0.3s;
}
.strength-fill.weak   { background: #ef4444; }
.strength-fill.fair   { background: #f59e0b; }
.strength-fill.good   { background: #3b82f6; }
.strength-fill.strong { background: #22c55e; }

.strength-label { font-size: 0.7rem; }
.strength-label.weak   { color: #ef4444; }
.strength-label.fair   { color: #f59e0b; }
.strength-label.good   { color: #3b82f6; }
.strength-label.strong { color: #22c55e; }

.match-label { font-size: 0.7rem; }
.match-ok  { color: #22c55e; }
.match-err { color: #ef4444; }

.field-err {
  font-size: 0.75rem;
  color: #ef4444;
}
.field-err::before { content: '✕'; font-size: 0.65rem; margin-right: 4px; }

/* Checkbox custom (dipertahankan seperti asli, override Bootstrap default) */
.cb-label {
  font-size: 0.8125rem;
  color: #6b7280;
  cursor: pointer;
}
.cb-label .form-check-input {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #d1d5db;
  background-color: #f9fafb;
  margin-top: 0;
  cursor: pointer;
}
.cb-label .form-check-input:checked {
  background-color: #6c3ee8;
  border-color: #6c3ee8;
}
.cb-label .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(108, 62, 232, 0.1);
}

.inline-link, .forgot-link, .switch-auth a {
  color: #6c3ee8;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.inline-link:hover, .forgot-link:hover, .switch-auth a:hover { color: #5b21b6; }
.switch-auth a { font-weight: 700; }

/* Primary button */
.btn-primary {
  height: 50px;
  background-color: #5b30d6;
  border: none;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 18px rgba(91, 48, 214, 0.38);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #4f27c4 !important;
  border-color: #4f27c4 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(91, 48, 214, 0.45);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

/* Divider */
.divider span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #d1d5db;
  letter-spacing: 0.1em;
}
.divider hr { border-color: #f3f4f6; opacity: 1; }

/* Footer */
.switch-auth { font-size: 0.8375rem; color: #6b7280; }
.copy { font-size: 0.73rem; color: #d1d5db; }

/* ================================================
   RESPONSIVE (menyamai breakpoint asli 720px)
================================================ */
@media (max-width: 767.98px) {
  .auth-wrapper { border-radius: 20px; min-height: unset; }
  .left-panel { min-height: 220px; }
  .left-inner { padding: 2rem 1.75rem; }
  .left-hero h1 { font-size: 1.6rem; }
  .bc1, .bc2 { display: none; }
  .feature-list { display: none; }
  .right-inner { padding: 2rem 1.75rem 1.5rem; }
}