/* ==============================================================
   rakaloka-auth-modern.css — Login / Register / Auth pages
   Shares the same design system as rakaloka-modern.css.
   Font: Plus Jakarta Sans (loaded in rakaloka-modern.css)
   Blue: #1a56db · Surface: #fff · BG: #f8fafc
   ============================================================== */

/* ── 1. PAGE SHELL ── */
.custom-login {
  position: relative;
  min-height: 100vh;
  background: #f8fafc !important;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
  overflow: unset !important;
}
.custom-login .login-bg-img,
.custom-login .bg-login { display:none !important; }
.custom-login .custom-login-inner {
  position: relative;
  z-index: 1;
  overflow: visible !important;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 28px 16px;
  display: flex;
  flex-direction: column;
}

/* ── 2. NAVBAR — identical tokens to landing page ── */
.custom-login .dash-header {
  margin-bottom: 24px;
  position: relative !important;
  z-index: 20 !important;
  overflow: visible !important;
  box-shadow: none !important;
  min-height: auto !important;
}
.custom-login .auth-navbar.navbar,
.custom-login .navbar {
  height: 70px !important;
  padding: 0 22px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.96) !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15,23,42,.06) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  display: flex !important;
  align-items: center !important;
}
.custom-login .auth-navbar .container,
.custom-login .navbar .container {
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
  align-items: center;
}
.custom-login .navbar-brand {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 !important;
  margin-right: auto;
}
.custom-login .navbar-brand .navbar-brand-img,
.custom-login .navbar-brand .auth-navbar-brand {
  max-height: 34px !important;
  width: auto;
}
.auth-utility-nav { align-items: center; gap: 2px; }
.custom-login .navbar .navbar-collapse { justify-content: flex-end !important; }
.custom-login .auth-utility-nav .nav-link,
.custom-login .auth-utility-nav .dash-head-link,
.custom-login .auth-utility-nav .drp-language .btn {
  display: inline-flex !important;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px !important;
  border-radius: 10px !important;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 500;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all .18s ease;
  box-shadow: none !important;
  white-space: nowrap;
}
.custom-login .auth-utility-nav .nav-link:hover,
.custom-login .auth-utility-nav .dash-head-link:hover,
.custom-login .auth-utility-nav .drp-language .btn:hover,
.custom-login .auth-utility-nav .drp-language .btn.show {
  color: #1a56db !important;
  background: #ebf5ff !important;
  border-color: transparent !important;
}
/* Kill pseudo-element vertical bars */
.custom-login .navbar .nav-item .nav-link::after,
.custom-login .dropdown-toggle::after,
.custom-login .navbar .nav-link::after {
  display: none !important;
  content: none !important;
  background: none !important;
}
.custom-login .drp-language .drp-text,
.custom-login .drp-language a span { color: inherit !important; }
.custom-login .dropdown-menu {
  padding: 8px !important;
  border-radius: 14px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 10px 36px rgba(15,23,42,.12) !important;
  background: #ffffff !important;
}
.custom-login .dropdown-item {
  border-radius: 9px !important;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px !important;
}
.custom-login .dropdown-item:hover,
.custom-login .dropdown-item.text-primary {
  background: #ebf5ff !important;
  color: #1a56db !important;
}
.custom-login .navbar-toggler {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  box-shadow: none;
}
.custom-login .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(26,86,219,.14); }

/* ── 3. MAIN WRAPPER ── */
.custom-wrapper {
  flex: 1;
  width: 100%;
  padding: 0 0 20px !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  position: relative;
  z-index: 1;
  overflow: visible !important;
}
.auth-layout-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
  gap: 28px;
  align-items: stretch;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ── 4. LEFT SPOTLIGHT PANEL ── */
.auth-spotlight {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 44px 40px 36px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f7ff 0%, #f8fafc 55%, #fff 100%);
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(26,86,219,.08);
}
/* Dot pattern */
.auth-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,86,219,.10) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: .6;
  z-index: 0;
}
/* Glow orb */
.auth-spotlight::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,.08) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.auth-spotlight > * { position: relative; z-index: 1; }
.auth-spotlight-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.auth-spotlight-brand img { max-height: 34px; width: auto; }

/* Kicker badge */
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ebf5ff;
  border: 1px solid #bfdbfe;
  color: #1a56db;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* Headline */
.custom-login .auth-spotlight h1 {
  margin: 0 0 16px !important;
  max-width: 20ch;
  color: #0f172a !important;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}
/* Subtext */
.custom-login .auth-spotlight p {
  max-width: 440px;
  margin: 0 0 32px !important;
  color: #475569 !important;
  font-size: .95rem;
  line-height: 1.8;
}

/* Feature list */
.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.85);
  border: 1.5px solid #e2e8f0;
  transition: border-color .18s, box-shadow .18s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.auth-feature-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(26,86,219,.08);
}
.auth-feature-item .af-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ebf5ff;
  border: 1px solid #bfdbfe;
  font-size: 1rem;
  color: #1a56db;
  transition: background .18s;
}
.auth-feature-item:hover .af-icon { background: #1a56db; color: #fff; }
.auth-feature-item .af-text strong {
  display: block;
  color: #0f172a;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.auth-feature-item .af-text span {
  color: #64748b;
  font-size: .80rem;
  line-height: 1.5;
}

/* Bottom utility links */
.auth-utility-links { display:flex; flex-wrap:wrap; gap:8px; }
.auth-utility-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.85);
  border: 1.5px solid #e2e8f0;
  color: #475569 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .18s;
}
.auth-utility-links a:hover {
  background: #ebf5ff;
  border-color: #bfdbfe;
  color: #1a56db !important;
}

/* ── 5. RIGHT FORM CARD ── */
.auth-main {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.auth-main .card,
.custom-login .custom-wrapper .card {
  position: relative;
  overflow: hidden;
  width: min(100%, 480px);
  margin: 0 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 28px rgba(15,23,42,.08) !important;
}
/* Blue top accent bar */
.auth-main .card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1a56db 0%, #60a5fa 100%);
}
.auth-main .card::after { display:none; }
.custom-login .custom-wrapper .card .card-body {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 40px 36px 32px !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ── 6. FORM HEADER ── */
.auth-form-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1.5px solid #f1f5f9;
}
.auth-title {
  margin: 0 0 6px !important;
  color: #0f172a !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em !important;
}
.auth-copy {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* ── 7. LABELS & INPUTS ── */
.auth-form .form-group,
.auth-form .mb-3 { margin-bottom: 18px !important; }
.custom-login .form-label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.auth-label-row .form-label { margin-bottom: 0 !important; }
.auth-forgot-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #1a56db !important;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.auth-forgot-link:hover { color: #1e429f !important; text-decoration: underline; }

/* Input group */
.auth-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}
.auth-input-group .input-group-text {
  min-height: 50px !important;
  padding: 0 14px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-right: 0 !important;
  border-radius: 14px 0 0 14px !important;
  color: #94a3b8 !important;
  font-size: 1rem !important;
  box-shadow: none !important;
  transition: all .18s;
}
.auth-input-group .auth-pwd-toggle {
  min-height: 50px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-left: 0;
  border-radius: 0 14px 14px 0;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
}
.auth-input-group.has-toggle .form-control {
  border-radius: 0 !important;
  border-right: 0 !important;
}
.auth-input-group .auth-pwd-toggle:hover { color: #1a56db; background: #ebf5ff; }
.auth-input-group:focus-within .input-group-text,
.auth-input-group:focus-within .auth-pwd-toggle {
  border-color: #1a56db !important;
  background: #ebf5ff !important;
  color: #1a56db !important;
}
.custom-login .form-control {
  min-height: 50px !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  box-shadow: none !important;
  transition: border-color .18s, box-shadow .18s, background .18s !important;
}
.custom-login .form-control::placeholder { color: #94a3b8 !important; }
.custom-login .form-control:focus {
  border-color: #1a56db !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(26,86,219,.12) !important;
  color: #0f172a !important;
}
.auth-input-group .form-control {
  border-radius: 0 14px 14px 0 !important;
  border-left: 0 !important;
}
.auth-input-group:focus-within .form-control {
  border-color: #1a56db !important;
  background: #ffffff !important;
}
.custom-login .form-control.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: none !important;
}
.custom-login .error,
.custom-login .text-danger,
.custom-login small { font-size: 12.5px !important; }

/* ── 8. CHECKBOX ── */
.custom-login .form-check { margin:0; padding-left:26px; }
.custom-login .form-check-input {
  width: 18px !important;
  height: 18px !important;
  margin-left: -26px;
  border-radius: 6px !important;
  border-color: #cbd5e1 !important;
  cursor: pointer;
  transition: all .15s;
}
.custom-login .form-check-input:checked {
  background-color: #1a56db !important;
  border-color: #1a56db !important;
}
.custom-login .form-check-label {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
}

/* ── 9. SUBMIT BUTTON ── */
.custom-login .d-grid { gap: 10px; }
.custom-login .btn-primary,
.custom-login .btn-submit,
.custom-login .login_button {
  min-height: 52px !important;
  border: none !important;
  border-radius: 14px !important;
  background: #1a56db !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  box-shadow: 0 8px 28px rgba(26,86,219,.25) !important;
  transition: transform .18s, box-shadow .18s, background .18s !important;
}
.custom-login .btn-primary:hover,
.custom-login .btn-submit:hover,
.custom-login .login_button:hover {
  background: #1e429f !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 36px rgba(26,86,219,.35) !important;
}
.custom-login .btn-primary:disabled,
.custom-login .login_button:disabled { opacity:.65; transform:none !important; }
.custom-login .btn-danger {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.18);
  background: rgba(239,68,68,.07);
  color: #b91c1c;
  font-weight: 700;
}

/* ── 10. TRUST BADGE ── */
.auth-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
}
.auth-trust-badge i { color: #1a56db; font-size: .9rem; }

/* ── 11. LINKS & ALT LINK ── */
.auth-alt-link {
  margin: 16px 0 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  text-align: center !important;
}
.custom-login .text-primary,
.custom-login a,
.auth-inline-link,
.auth-alt-link a,
.form-check-label a { color: #1a56db !important; text-decoration: none !important; }
.custom-login a:hover,
.auth-inline-link:hover,
.auth-alt-link a:hover { color: #1e429f !important; text-decoration: underline; }

/* ── 12. STATUS / ALERTS ── */
.auth-status {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid transparent;
}
.auth-status--success,
.custom-login .alert,
.custom-login .text-success.auth-status {
  color: #065f46 !important;
  background: rgba(16,185,129,.09) !important;
  border-color: rgba(16,185,129,.2) !important;
}
.auth-status--danger,
.custom-login .text-danger.auth-status {
  color: #b91c1c !important;
  background: rgba(239,68,68,.08) !important;
  border-color: rgba(239,68,68,.16) !important;
}
.auth-note { margin:0 0 20px; color:#64748b; font-size:14px; line-height:1.75; }
.auth-inline-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
.auth-inline-link { font-size: 12.5px; font-weight: 700; }

/* ── 13. FOOTER ── */
.auth-footer {
  padding: 10px 0 4px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}
.auth-footer span { display:inline-block; padding:0 6px; }

/* ── 14. RESPONSIVE ── */
@media(max-width:1100px) {
  .auth-layout-row {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .auth-main { order:1; }
  .auth-spotlight { order:2; display:none; }
  .custom-wrapper { padding-bottom:12px !important; }
}
@media(max-width:991px) {
  .custom-login .navbar .navbar-collapse { margin-top:10px; }
  .auth-utility-nav { align-items:stretch; }
  .custom-login .auth-utility-nav .nav-link,
  .custom-login .auth-utility-nav .dash-head-link,
  .custom-login .auth-utility-nav .drp-language .btn {
    justify-content: flex-start;
    width: 100%;
  }
}
@media(max-width:767px) {
  .custom-login .custom-login-inner { padding:12px 16px 10px; }
  .custom-login .auth-navbar.navbar,
  .custom-login .navbar {
    height: auto !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
  }
  .auth-main .card,
  .custom-login .custom-wrapper .card {
    border-radius: 20px !important;
    width: 100%;
  }
  .custom-login .custom-wrapper .card .card-body {
    padding: 30px 22px 24px !important;
  }
}
