/**
 * Rebrand CSS — Koperasi Desa Merah Putih
 * Overrides Bootstrap + MDB UI Kit primary colors to the Merah Putih brand palette.
 * Loaded AFTER style.css and mdb.min.css via JsPlugin.php.
 *
 * Primary  : #EF4444  (red — Merah Putih)
 * Secondary: #3B82F6  (blue)
 * Dark text: #1E293B  (slate-900)
 * Light bg : #F9FAFB  (slate-50)
 */

/* ─── CSS Custom Properties ─────────────────────────────────────── */
:root {
  --brand-primary:        #EF4444;
  --brand-primary-hover:  #DC2626;
  --brand-primary-light:  #FEE2E2;
  --brand-primary-ring:   rgba(239, 68, 68, 0.25);
  --brand-secondary:      #3B82F6;
  --brand-dark:           #1E293B;
  --brand-bg:             #F9FAFB;
  --brand-font:           'Plus Jakarta Sans', 'Open Sans', sans-serif;

  /* Override Bootstrap CSS vars */
  --bs-primary:           #EF4444;
  --bs-primary-rgb:       239, 68, 68;
  --bs-link-color:        #EF4444;
  --bs-link-hover-color:  #DC2626;
  --bs-body-font-family:  var(--brand-font);
  --bs-body-bg:           var(--brand-bg);
  --bs-body-color:        #374151;
  --bs-border-radius:     0.5rem;
  --bs-border-radius-sm:  0.375rem;
  --bs-border-radius-lg:  0.75rem;
}

/* ─── Bootstrap Button Overrides ────────────────────────────────── */
.btn-primary {
  background-color: var(--brand-primary) !important;
  border-color:     var(--brand-primary) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--brand-primary-hover) !important;
  border-color:     var(--brand-primary-hover) !important;
  box-shadow: 0 0 0 0.2rem var(--brand-primary-ring) !important;
}

.btn-outline-primary {
  color:        var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--brand-primary) !important;
  border-color:     var(--brand-primary) !important;
  color: #fff !important;
}

/* ─── Global Form Controls ──────────────────────────────────────── */
.form-control,
.form-select {
  padding: 0.575rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--brand-font);
  color: #374151;
  background-color: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 0.5rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.5;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary) !important;
  box-shadow:   0 0 0 3px var(--brand-primary-ring) !important;
  background-color: #FEFEFE;
  outline: none;
}

.form-control:read-only,
.form-control[readonly] {
  background-color: #F1F5F9;
  color: #64748B;
  cursor: default;
}

.form-control::placeholder { color: #94A3B8; }

/* ─── Labels ─────────────────────────────────────────────────────── */
label,
.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.325rem;
}

/* ─── Input Group ────────────────────────────────────────────────── */
.input-group .form-control { border-radius: 0 0.5rem 0.5rem 0 !important; }
.input-group .input-group-text:first-child { border-radius: 0.5rem 0 0 0.5rem !important; }
.input-group .input-group-text:last-child  { border-radius: 0 0.5rem 0.5rem 0 !important; }
.input-group-text {
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #64748B;
  font-size: 0.875rem;
}
.input-group > .form-control,
.input-group > .form-select {
  border-left: none;
}

/* ─── Textarea ───────────────────────────────────────────────────── */
textarea.form-control { min-height: 100px; resize: vertical; }

/* ─── Form check ─────────────────────────────────────────────────── */
.form-check-input:checked {
  background-color: var(--brand-primary);
  border-color:     var(--brand-primary);
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px var(--brand-primary-ring);
}

/* ─── Small helper / credit text ────────────────────────────────── */
.form-text, small.credit, .credit { font-size: 0.76rem; color: #94A3B8; }

/* ─── Bootstrap Badge ───────────────────────────────────────────── */
.badge.bg-primary { background-color: var(--brand-primary) !important; }
.text-primary      { color: var(--brand-primary) !important; }
.bg-primary        { background-color: var(--brand-primary) !important; }
.border-primary    { border-color:     var(--brand-primary) !important; }

/* ─── Global Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: var(--brand-font);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}
.btn-sm  { padding: 0.3rem 0.75rem  !important; font-size: 0.78rem !important; }
.btn-lg  { padding: 0.7rem 1.5rem   !important; font-size: 0.95rem !important; }
.btn-rounded { border-radius: 50px !important; }

.btn-success {
  background: linear-gradient(135deg,#059669,#10B981) !important;
  border-color: #059669 !important; color:#fff !important;
}
.btn-success:hover { background: linear-gradient(135deg,#047857,#059669) !important; border-color:#047857 !important; }

.btn-danger {
  background: linear-gradient(135deg,#DC2626,#EF4444) !important;
  border-color: #DC2626 !important; color:#fff !important;
}
.btn-danger:hover { background: linear-gradient(135deg,#B91C1C,#DC2626) !important; border-color:#B91C1C !important; }

.btn-info {
  background: linear-gradient(135deg,#0284C7,#0EA5E9) !important;
  border-color: #0284C7 !important; color:#fff !important;
}
.btn-info:hover { background: linear-gradient(135deg,#0369A1,#0284C7) !important; border-color:#0369A1 !important; }

.btn-warning {
  background: linear-gradient(135deg,#D97706,#F59E0B) !important;
  border-color: #D97706 !important; color:#fff !important;
}
.btn-warning:hover { background: linear-gradient(135deg,#B45309,#D97706) !important; border-color:#B45309 !important; }

.btn-dark {
  background: linear-gradient(135deg,#0F172A,#1E293B) !important;
  border-color: #0F172A !important; color:#fff !important;
}
.btn-dark:hover { background: linear-gradient(135deg,#020617,#0F172A) !important; border-color:#020617 !important; }

.btn-secondary {
  background: linear-gradient(135deg,#64748B,#94A3B8) !important;
  border-color: #64748B !important; color:#fff !important;
}
.btn-secondary:hover { background: linear-gradient(135deg,#475569,#64748B) !important; border-color:#475569 !important; }

.btn-light {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #374151 !important;
}
.btn-light:hover { background: #E2E8F0 !important; }

/* ─── Modal Polish ───────────────────────────────────────────────── */
.modal-content {
  border-radius: 1rem !important;
  border: none;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,23,42,0.2);
}
.modal-header {
  border-bottom: none;
  padding: 1rem 1.25rem;
}
.modal-header .modal-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.modal-footer {
  border-top: 1px solid #F1F5F9;
  background: #F9FAFB !important;
  padding: 0.875rem 1.25rem;
}
/* Normalise colored footers from old code */
.modal-footer.bg-info,
.modal-footer.bg-primary,
.modal-footer.bg-dark,
.modal-footer.bg-success,
.modal-footer.bg-danger { background: #F9FAFB !important; border-top: 1px solid #F1F5F9; }

/* ─── Alerts ─────────────────────────────────────────────────────── */
.alert {
  border-radius: 0.625rem !important;
  border: none;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert-info    { background: #EFF6FF; color: #1D4ED8; }
.alert-success { background: #D1FAE5; color: #065F46; }
.alert-danger  { background: #FEE2E2; color: #991B1B; }
.alert-warning { background: #FEF3C7; color: #92400E; }

/* ─── Pagination ─────────────────────────────────────────────────── */
.page-item.active .page-link {
  background-color: var(--brand-primary) !important;
  border-color:     var(--brand-primary) !important;
}
.page-link {
  color: var(--brand-primary);
  border-radius: 0.375rem !important;
  font-size: 0.85rem;
}
.page-link:hover {
  color: var(--brand-primary-hover);
  background-color: var(--brand-primary-light);
}

/* ─── MDB UI Kit Overrides ──────────────────────────────────────── */
.btn-ripple-surface,
.ripple-surface {
  --mdb-ripple-color: var(--brand-primary);
}

/* ─── Breadcrumb Links ──────────────────────────────────────────── */
.breadcrumb a {
  color: #94A3B8;
}

.breadcrumb a:hover {
  color: #475569;
}

.breadcrumb .active {
  color: #475569;
}

/* ─── Search bar on dark header ─────────────────────────────────── */
@media (max-width: 1199px) {
  .header .search-bar {
    background: #fff;
    box-shadow: 0px 0px 15px 0px rgba(239, 68, 68, 0.1);
  }
}

/* ─── Profile card heading ──────────────────────────────────────── */
.profile .profile-card h2 {
  color: var(--brand-dark);
}

/* ─── Sidebar logo brand label on dark sidebar ──────────────────── */
#sidebar .logo span {
  color: #fff;
}

/* ─── Sidebar scrollbar accent ──────────────────────────────────── */
#sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(239, 68, 68, 0.35);
  border-radius: 4px;
}

/* ─── Loading / Page transition spinner ────────────────────────── */
#page-loading-overlay {
  position: fixed;
  inset: 0;
  background: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

#page-loading-overlay .spinner-brand {
  width: 48px;
  height: 48px;
  border: 4px solid var(--brand-primary-light);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Card polish ───────────────────────────────────────────────── */
.card {
  border-radius: 12px !important;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(239, 68, 68, 0.12) !important;
}

.card-header {
  border-radius: 12px 12px 0 0 !important;
}

/* ─── Table head tint ───────────────────────────────────────────── */
.table thead th {
  background-color: #FFF5F5;
  color: var(--brand-dark);
  font-weight: 600;
  font-family: var(--brand-font);
}

/* ─── Utilities: red underline hover link ───────────────────────── */
a.text-primary:hover { color: var(--brand-primary-hover) !important; }

/* ─── Pagination active ─────────────────────────────────────────── */
.page-item.active .page-link {
  background-color: var(--brand-primary) !important;
  border-color:     var(--brand-primary) !important;
}

.page-link {
  color: var(--brand-primary);
}

.page-link:hover {
  color: var(--brand-primary-hover);
}

/* ─── Progress bar ──────────────────────────────────────────────── */
.progress-bar {
  background-color: var(--brand-primary);
}

/* ─── Floating action / Back-to-top polish ──────────────────────── */
.back-to-top {
  border-radius: 8px !important;
}

/* ─── Alert info tint to brand ──────────────────────────────────── */
.alert-primary {
  color: #991B1B;
  background-color: #FEF2F2;
  border-color: #FECACA;
}

/* ─── Sidebar active nav-link highlight pill ────────────────────── */
.sidebar-nav .nav-link:not(.collapsed) {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid var(--brand-primary);
  padding-left: 12px;
}

/* ─── Sidebar icon and link colors ─────────────────────────────── */
.sidebar-nav .nav-link {
  color: #fff !important;
}
.sidebar-nav .nav-link .material-icons-outlined {
  font-size: 18px;
  margin-right: 0.75rem;
  vertical-align: middle;
  color: #94A3B8;
  transition: color 0.2s;
}
.sidebar-nav .nav-link:not(.collapsed) .material-icons-outlined,
.sidebar-nav .nav-link:hover .material-icons-outlined {
  color: var(--brand-primary);
}
.sidebar-nav .nav-link.collapsed {
  color: rgba(255,255,255,0.85) !important;
}
.sidebar-nav .nav-link.collapsed .material-icons-outlined {
  color: rgba(255,255,255,0.85) !important;
}


/* ─── Search bar input inside dark header ───────────────────────── */
.landing_background .search-form input {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.landing_background .search-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.landing_background .search-form button i {
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Header profile/notification icon color on colored header ──── */
.landing_background .header-nav .nav-icon,
.landing_background .header-nav .nav-profile {
  color: #fff;
}

/* ─── Ensure sidebar (menu_background) overrides inline bg ─────── */
.sidebar.menu_background {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%) !important;
}

/* ════════════════════════════════════════════════════════════════
   LOGIN PAGE COMPONENTS
   ════════════════════════════════════════════════════════════════ */

/* Body */
.login-page-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--brand-font);
}

/* Main wrapper */
.login-main-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  /* pastel radial gradient (light, clean) */
  background:
    radial-gradient(circle at top left,  rgba(254, 226, 226, 0.55) 0%, transparent 40%),
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.45) 0%, transparent 40%),
    radial-gradient(circle at bottom left, rgba(254, 240, 207, 0.35) 0%, transparent 40%),
    #F9FAFB !important;
  position: relative;
}

/* Bottom color bar */
.login-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #FDE68A 0%, #EF4444 50%, #93C5FD 100%);
  opacity: 0.6;
  z-index: 10;
}

/* Center column */
.login-center-col {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Loading screen ─────────────────────────────────────────────── */
#login-loading-screen {
  position: fixed;
  inset: 0;
  background: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.login-loader-inner {
  text-align: center;
}

.login-loader-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.login-loader-icon .material-icons-outlined {
  font-size: 36px;
  color: var(--brand-primary);
  animation: login-pulse 1.2s ease-in-out infinite;
}

@keyframes login-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.92); }
}

.login-loader-text {
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  margin: 0;
}

/* ── Logo block ─────────────────────────────────────────────────── */
.login-logo-block {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.15);
  margin-bottom: 1rem;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-logo-icon-wrap:hover {
  transform: rotate(3deg) scale(1.05);
  box-shadow: 0 14px 48px rgba(239, 68, 68, 0.22);
}

.login-logo-icon-bg {
  position: absolute;
  inset: 8px;
  background: var(--brand-primary);
  border-radius: 10px;
  opacity: 0.12;
  transform: rotate(45deg);
  transition: transform 0.4s ease;
}

.login-logo-icon-wrap:hover .login-logo-icon-bg {
  transform: rotate(90deg);
  opacity: 0.18;
}

.login-logo-icon {
  font-size: 32px;
  color: var(--brand-primary);
  position: relative;
  z-index: 1;
}

.login-brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 0.3rem;
}

.login-brand-sub {
  font-size: 0.82rem;
  color: #64748B;
  margin: 0;
}

/* ── Card ───────────────────────────────────────────────────────── */
.login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 2rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
  .login-card { padding: 2.5rem; }
}

.login-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 0.35rem;
}

.login-card-subtitle {
  font-size: 0.83rem;
  color: #64748B;
  margin: 0;
}

/* ── Inline alert ───────────────────────────────────────────────── */
.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.login-alert .material-icons-outlined {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.login-alert a { font-weight: 600; text-decoration: underline; }

.login-alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.login-alert-success .material-icons-outlined { color: #10B981; }

.login-alert-danger {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.login-alert-danger .material-icons-outlined { color: #EF4444; }

/* ── Field group ────────────────────────────────────────────────── */
.login-field-group {
  margin-bottom: 1.1rem;
}

.login-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
  cursor: default;
}

.login-label .material-icons-outlined {
  font-size: 15px;
  color: #9CA3AF;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.login-label-row .login-label { margin-bottom: 0; }

.login-forgot-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Input wrapper with icon ────────────────────────────────────── */
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  font-size: 18px;
  color: #9CA3AF;
  pointer-events: none;
  transition: color 0.2s;
  z-index: 2;
}

.login-input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: var(--brand-font);
  color: #1E293B;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.login-input::placeholder { color: #CBD5E1; }

.login-input:focus {
  background: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-ring);
}

.login-input-wrap:focus-within .login-input-icon {
  color: var(--brand-primary);
}

/* password toggle button */
.login-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  z-index: 2;
}

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

.login-pw-toggle .material-icons-outlined { font-size: 18px; }

.login-input.has-toggle { padding-right: 44px; }

/* ── Select ─────────────────────────────────────────────────────── */
.login-select {
  width: 100%;
  padding: 13px 40px 13px 14px;
  background: #F8FAFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: var(--brand-font);
  color: #1E293B;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.login-select:focus {
  background-color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-ring);
}

/* ── Inline notification message ────────────────────────────────── */
.login-inline-msg {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.25rem;
}

.login-inline-msg .material-icons-outlined {
  font-size: 15px;
  color: #94A3B8;
  flex-shrink: 0;
}

.login-inline-msg.msg-error {
  color: #991B1B;
  background: #FEF2F2;
  border-color: #FECACA;
}

.login-inline-msg.msg-error .material-icons-outlined { color: #EF4444; }

/* ── Primary submit button ──────────────────────────────────────── */
.login-btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 20px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--brand-font);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.28);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.login-btn-submit .material-icons-outlined { font-size: 20px; }

.login-btn-submit:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.38);
  transform: translateY(-1px);
}

.login-btn-submit:active  { transform: scale(0.98); }

.login-btn-submit:disabled,
.login-btn-submit.loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Divider ────────────────────────────────────────────────────── */
.login-divider {
  position: relative;
  text-align: center;
  margin: 0.25rem 0 1rem;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E2E8F0;
}

.login-divider span {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  padding: 0 0.75rem;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

/* ── Secondary (outline) button ─────────────────────────────────── */
.login-btn-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 13px 20px;
  background: transparent;
  color: #374151;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--brand-font);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}

.login-btn-secondary .material-icons-outlined { font-size: 18px; color: #9CA3AF; }

.login-btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #FFF5F5;
  transform: translateY(-1px);
}

.login-btn-secondary:hover .material-icons-outlined { color: var(--brand-primary); }

/* ── Status badges ──────────────────────────────────────────────── */
.login-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 5px 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748B;
  backdrop-filter: blur(6px);
}

.login-badge .material-icons-outlined { font-size: 12px; }

.login-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%       { box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

/* ── Footer credit ──────────────────────────────────────────────── */
.login-credit {
  font-size: 0.72rem;
  color: #94A3B8;
  text-align: center;
}

.login-credit a {
  color: #64748B;
  font-weight: 600;
  text-decoration: none;
}

.login-credit a:hover { color: var(--brand-primary); }

/* ── 2-column grid layout (Pendaftaran) ─────────────────────────── */
.login-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 480px) {
  .login-grid-2 { grid-template-columns: 1fr; }
}

/* ── Form footnote ───────────────────────────────────────────────── */
.login-form-footnote {
  font-size: 0.78rem;
  color: #94A3B8;
  text-align: center;
  margin-top: 1rem;
}
.login-form-footnote a {
  color: #64748B;
  font-weight: 600;
  text-decoration: none;
}
.login-form-footnote a:hover { color: var(--brand-primary); }

/* ── Result icon (ValidasiEmail, Berhasil, etc.) ────────────────── */
.login-result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.login-result-icon .material-icons-outlined {
  font-size: 2.25rem;
}
.login-result-success {
  background: #D1FAE5;
  color: #059669;
}
.login-result-error {
  background: #FEE2E2;
  color: #DC2626;
}

/* ── Readonly input styling ──────────────────────────────────────── */
.login-input-readonly {
  background: #F1F5F9 !important;
  cursor: default;
  color: #475569;
}

/* ── Setting page section groups ────────────────────────────────── */
.setting-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0.75rem;
}

/* ── App footer ──────────────────────────────────────────────────── */
.footer.app-footer {
  background: #fff !important;
  border-top: 1px solid #F1F5F9;
  padding: 0.625rem 2rem; /* add horizontal breathing room */
}
.app-footer-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #94A3B8;
}
.app-footer-link {
  color: #64748B !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s;
}
.app-footer-link:hover { color: var(--brand-primary) !important; }
.app-footer-sep   { color: #CBD5E1; }
.app-footer-copy strong { color: #475569; }

/* ── Navbar / dropdown polish ────────────────────────────────────── */
.dropdown-menu {
  border: 1px solid #F1F5F9;
  border-radius: 0.75rem !important;
  box-shadow: 0 8px 32px rgba(15,23,42,0.14);
  padding: 0.375rem 0;
}
.dropdown-item {
  font-size: 0.855rem;
  padding: 0.5rem 1rem;
  color: #374151;
  transition: background 0.15s, color 0.15s;
  border-radius: 0.375rem;
  margin: 0 0.25rem;
  width: calc(100% - 0.5rem);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--brand-primary-light);
  color: var(--brand-primary);
}
.dropdown-item.text-danger:hover {
  background-color: #FEE2E2;
  color: #DC2626 !important;
}
.dropdown-divider { border-color: #F1F5F9; margin: 0.25rem 0; }
