/* ═══════════════════════════════════════════════════════════════
   HOA Management System — Custom Design v3.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Font override ── */
* { font-family: 'Inter', 'Source Sans Pro', system-ui, sans-serif; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CSS VARIABLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --sidebar-bg:        #1a2035;
  --sidebar-hover:     rgba(255,255,255,.07);
  --sidebar-active:    rgba(255,255,255,.12);
  --sidebar-accent:    #4f8ef7;
  --sidebar-text:      rgba(255,255,255,.78);
  --sidebar-muted:     rgba(255,255,255,.38);
  --sidebar-header:    rgba(255,255,255,.28);
  --sidebar-border:    rgba(255,255,255,.06);
  --sidebar-width:     240px;

  --navbar-bg:         #ffffff;
  --navbar-shadow:     0 1px 4px rgba(0,0,0,.06);

  --brand-gradient:    linear-gradient(135deg, #4f8ef7 0%, #764cf7 100%);
  --card-shadow:       0 2px 8px rgba(0,0,0,.06);
  --card-shadow-hover: 0 6px 20px rgba(0,0,0,.1);
  --radius:            8px;
  --radius-sm:         5px;
  --radius-lg:         12px;

  --accent:            #4f8ef7;
  --accent-dark:       #1d4ed8;
  --success:           #16a34a;
  --warning:           #d97706;
  --danger:            #dc2626;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SIDEBAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hoa-sidebar {
  background: var(--sidebar-bg) !important;
  border-right: none !important;
  width: var(--sidebar-width) !important;
}

/* Brand / logo area */
.hoa-brand {
  background: rgba(0,0,0,.25) !important;
  border-bottom: 1px solid var(--sidebar-border) !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}
.hoa-brand-icon {
  width: 34px; height: 34px;
  background: var(--brand-gradient);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(79,142,247,.45);
}
.hoa-brand-text {
  font-size: .88rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: .02em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* User panel in sidebar */
.hoa-user-panel {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 4px;
}
.hoa-sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.hoa-user-name {
  color: var(--sidebar-text);
  font-size: .82rem;
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hoa-role-pill {
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(79,142,247,.25);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 2px;
  display: inline-block;
}

/* Section headers */
.hoa-section-header {
  font-size: .6rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  color: var(--sidebar-header) !important;
  text-transform: uppercase !important;
  padding: .9rem 1rem .2rem 1.1rem !important;
  margin-top: 4px;
}
.hoa-section-header:first-of-type { margin-top: 0; }

/* Nav items */
.hoa-nav .nav-item > .nav-link {
  color: var(--sidebar-text) !important;
  border-radius: 6px !important;
  margin: 1px 8px !important;
  padding: 7px 12px !important;
  font-size: .83rem !important;
  font-weight: 400;
  transition: background .15s ease, color .15s ease !important;
  position: relative;
}
.hoa-nav .nav-item > .nav-link:hover {
  background: var(--sidebar-hover) !important;
  color: #fff !important;
}
.hoa-nav .nav-item > .nav-link.active {
  background: var(--sidebar-active) !important;
  color: #fff !important;
  font-weight: 600;
}
.hoa-nav .nav-item > .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--sidebar-accent);
  border-radius: 0 3px 3px 0;
}
.hoa-nav .nav-icon {
  width: 18px !important;
  font-size: .82rem !important;
  margin-right: 10px !important;
  color: var(--sidebar-muted) !important;
  transition: color .15s;
}
.hoa-nav .nav-item > .nav-link:hover .nav-icon,
.hoa-nav .nav-item > .nav-link.active .nav-icon {
  color: var(--sidebar-accent) !important;
}

/* Inline badge in nav (pending count) */
.hoa-nav-badge {
  font-size: .6rem !important;
  padding: .2em .45em !important;
  line-height: 1.4;
  background: #f59e0b !important;
  color: #1c1c1c !important;
  font-weight: 700;
  margin-top: 2px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOP NAVBAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hoa-navbar {
  background: var(--navbar-bg) !important;
  box-shadow: var(--navbar-shadow) !important;
  min-height: 52px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.sidebar-toggle-btn { color: #64748b !important; }
.sidebar-toggle-btn:hover { color: var(--accent) !important; }

/* Role badge in navbar */
.hoa-role-badge {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .3em .7em;
  border-radius: 20px;
  text-transform: uppercase;
}

/* User dropdown trigger */
.hoa-user-dropdown { color: #374151 !important; }
.hoa-user-dropdown:hover { color: var(--accent) !important; }

/* Nav avatar in top bar */
.hoa-nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .65rem; font-weight: 700;
}

/* Pending approvals bell link */
.hoa-nav-badge-link {
  color: #374151 !important;
  position: relative;
}
.hoa-nav-badge-link:hover { color: var(--accent) !important; }
.hoa-top-badge {
  position: absolute !important;
  top: 4px !important; right: 2px !important;
  font-size: .55rem !important;
  padding: .2em .4em !important;
  min-width: 16px;
  height: 16px;
  line-height: 1.2;
}

/* User dropdown menu */
.hoa-user-menu {
  border: none !important;
  border-radius: var(--radius-lg) !important;
  min-width: 210px !important;
  overflow: hidden;
}
.hoa-user-menu-header {
  background: linear-gradient(135deg, #f0f4ff, #e8efff);
  padding: 16px !important;
  font-size: .78rem;
}
.hoa-menu-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem; font-weight: 700;
}
.hoa-user-menu .dropdown-item {
  font-size: .84rem;
  padding: .55rem 1.2rem;
  color: #374151;
}
.hoa-user-menu .dropdown-item:hover { background: #f8fafc; color: var(--accent); }
.hoa-user-menu .dropdown-item.text-danger:hover { background: #fff5f5; }
.font-weight-500 { font-weight: 500 !important; }
.font-weight-600 { font-weight: 600 !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTENT AREA
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hoa-content {
  background: #f4f6fb !important;
}
.hoa-page-header {
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  padding: 12px 0 !important;
  margin-bottom: 0 !important;
}
.hoa-page-title {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.card {
  border: 1px solid #e8edf5 !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--card-shadow) !important;
  margin-bottom: 1.25rem !important;
}
.card-header {
  background: #fff !important;
  border-bottom: 1px solid #e8edf5 !important;
  padding: 14px 18px !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
}
.card-title {
  font-size: .9rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 0 !important;
}
.card-body { padding: 18px !important; }
.card-footer {
  background: #fafbfc !important;
  border-top: 1px solid #e8edf5 !important;
  padding: 12px 18px !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
}

/* Outline card variants */
.card-outline.card-primary  { border-top: 3px solid #4f8ef7 !important; }
.card-outline.card-success  { border-top: 3px solid #16a34a !important; }
.card-outline.card-warning  { border-top: 3px solid #d97706 !important; }
.card-outline.card-danger   { border-top: 3px solid #dc2626 !important; }
.card-outline.card-info     { border-top: 3px solid #0891b2 !important; }
.card-outline.card-secondary{ border-top: 3px solid #64748b !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.table thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 10px 14px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  border-top: none !important;
}
.table tbody td {
  font-size: .84rem !important;
  padding: 10px 14px !important;
  color: #374151;
  vertical-align: middle !important;
  border-color: #f1f5f9 !important;
}
.table-hover tbody tr:hover {
  background: #f0f5ff !important;
  cursor: default;
}
.table-striped tbody tr:nth-of-type(odd) { background: #fafbfc !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  border-radius: 6px !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  padding: .42rem .9rem !important;
  transition: all .15s ease !important;
  letter-spacing: .01em;
}
.btn-sm, .btn-xs { font-size: .75rem !important; padding: .25rem .6rem !important; }
.btn-primary   { background: #4f8ef7 !important; border-color: #4f8ef7 !important; }
.btn-primary:hover { background: #3b7de8 !important; border-color: #3b7de8 !important; box-shadow: 0 3px 10px rgba(79,142,247,.35) !important; }
.btn-success   { background: #16a34a !important; border-color: #16a34a !important; }
.btn-success:hover { background: #15803d !important; box-shadow: 0 3px 10px rgba(22,163,74,.3) !important; }
.btn-warning   { background: #d97706 !important; border-color: #d97706 !important; color: #fff !important; }
.btn-warning:hover { background: #b45309 !important; }
.btn-danger    { background: #dc2626 !important; border-color: #dc2626 !important; }
.btn-danger:hover  { background: #b91c1c !important; }
.btn-info      { background: #0891b2 !important; border-color: #0891b2 !important; }
.btn-default   { background: #fff !important; border-color: #d1d5db !important; color: #374151 !important; }
.btn-default:hover { background: #f9fafb !important; border-color: #9ca3af !important; }
.btn-secondary { background: #475569 !important; border-color: #475569 !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BADGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.badge {
  font-size: .68rem !important;
  font-weight: 600 !important;
  padding: .28em .65em !important;
  border-radius: 20px !important;
  letter-spacing: .02em;
}
.badge-success  { background: #dcfce7 !important; color: #15803d !important; }
.badge-warning  { background: #fef3c7 !important; color: #b45309 !important; }
.badge-danger   { background: #fee2e2 !important; color: #b91c1c !important; }
.badge-info     { background: #e0f2fe !important; color: #0369a1 !important; }
.badge-primary  { background: #dbeafe !important; color: #1d4ed8 !important; }
.badge-secondary{ background: #f1f5f9 !important; color: #475569 !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORMS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.form-control {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: .84rem !important;
  padding: .45rem .75rem !important;
  color: #1e293b !important;
  background: #fff !important;
  transition: border-color .15s, box-shadow .15s !important;
}
.form-control:focus {
  border-color: #4f8ef7 !important;
  box-shadow: 0 0 0 3px rgba(79,142,247,.15) !important;
  outline: none !important;
}
.form-control::placeholder { color: #94a3b8 !important; }
.form-group > label {
  font-size: .78rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: .3rem !important;
  letter-spacing: .01em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SMALL BOXES (KPI cards)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.small-box {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--card-shadow) !important;
  transition: box-shadow .2s, transform .2s !important;
}
.small-box:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--card-shadow-hover) !important;
}
.small-box .inner h3 {
  font-size: 2rem !important;
  font-weight: 700 !important;
}
.small-box .small-box-footer {
  font-size: .78rem !important;
  padding: 6px !important;
}

/* Info boxes */
.info-box {
  border-radius: var(--radius) !important;
  box-shadow: var(--card-shadow) !important;
  border: 1px solid #e8edf5 !important;
}
.info-box-icon {
  border-radius: var(--radius) 0 0 var(--radius) !important;
  width: 70px !important;
  font-size: 1.6rem !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
.info-box-text { font-size: .78rem !important; font-weight: 600 !important; color: #64748b !important; }
.info-box-number { font-size: 1.5rem !important; font-weight: 700 !important; color: #1e293b !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.alert {
  border-radius: var(--radius) !important;
  border: none !important;
  font-size: .84rem !important;
  padding: .85rem 1.1rem !important;
}
.alert-success { background: #f0fdf4 !important; color: #15803d !important; border-left: 4px solid #16a34a !important; }
.alert-danger  { background: #fff5f5 !important; color: #b91c1c !important; border-left: 4px solid #dc2626 !important; }
.alert-warning { background: #fffbeb !important; color: #92400e !important; border-left: 4px solid #d97706 !important; }
.alert-info    { background: #eff6ff !important; color: #1d4ed8 !important; border-left: 4px solid #4f8ef7 !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CALLOUTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.callout {
  border-radius: var(--radius) !important;
  padding: 14px 18px !important;
  font-size: .84rem !important;
}
.callout-info    { border-left-color: #4f8ef7 !important; background: #f0f7ff !important; }
.callout-warning { border-left-color: #d97706 !important; background: #fffbeb !important; }
.callout-success { border-left-color: #16a34a !important; background: #f0fdf4 !important; }
.callout-danger  { border-left-color: #dc2626 !important; background: #fff5f5 !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGINATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pagination .page-link {
  border-radius: 6px !important;
  margin: 0 2px !important;
  font-size: .8rem !important;
  color: #374151 !important;
  border-color: #e2e8f0 !important;
  padding: .35rem .65rem !important;
}
.pagination .page-link:hover { background: #f0f5ff !important; color: var(--accent) !important; border-color: #bfdbfe !important; }
.pagination .page-item.active .page-link { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DROPDOWN MENUS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.dropdown-menu {
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.1) !important;
  font-size: .83rem !important;
}
.dropdown-item { padding: .5rem 1rem !important; color: #374151 !important; }
.dropdown-item:hover { background: #f8fafc !important; color: var(--accent) !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hoa-footer {
  background: #fff !important;
  border-top: 1px solid #e8edf5 !important;
  font-size: .8rem !important;
  padding: 10px 18px !important;
  color: #64748b !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODAL / PANEL CARDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.card-outline .card-header { border-top: none !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOASTR OVERRIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#toast-container { top: 60px !important; }
.toast {
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
  font-size: .83rem !important;
  opacity: 1 !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SCROLLBAR (webkit)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRINT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media print {
  .main-sidebar, .main-header, .hoa-footer, .card-tools,
  .btn:not(.print-show), .no-print { display: none !important; }
  .content-wrapper { margin-left: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 767px) {
  .hoa-page-title { font-size: .95rem !important; }
  .small-box .inner h3 { font-size: 1.5rem !important; }
  .card-body { padding: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register / Password reset)
   ═══════════════════════════════════════════════════════════════ */
.hoa-auth-body {
  background: #f4f6fb !important;
  min-height: 100vh;
}

.hoa-auth-wrap {
  display: flex;
  min-height: 100vh;
}

/* ── Left brand panel ── */
.hoa-auth-brand {
  flex: 1 1 46%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a2035 0%, #233055 55%, #2c3a66 100%);
  overflow: hidden;
  padding: 48px;
}
.hoa-auth-brand-inner {
  position: relative;
  z-index: 2;
  max-width: 420px;
  color: #fff;
}
.hoa-auth-brand-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(79,142,247,.4);
}
.hoa-auth-brand-inner h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  line-height: 1.25;
}
.hoa-auth-tagline {
  font-size: .92rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin-bottom: 28px;
}
.hoa-auth-features {
  list-style: none;
  margin: 0; padding: 0;
}
.hoa-auth-features li {
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hoa-auth-features li:last-child { border-bottom: none; }
.hoa-auth-features li i { color: #4fd1c5; font-size: .95rem; }

.hoa-auth-brand-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,.28) 0%, rgba(79,142,247,0) 70%);
  top: -180px; right: -180px;
  z-index: 1;
}
.hoa-auth-brand-glow::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118,76,247,.22) 0%, rgba(118,76,247,0) 70%);
  bottom: -160px; left: -120px;
}

/* ── Right form panel ── */
.hoa-auth-form-panel {
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.hoa-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: #64748b !important;
  text-decoration: none !important;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  align-self: flex-start;
}
.hoa-auth-back:hover {
  background: #f1f5f9;
  color: var(--accent) !important;
}
.hoa-auth-back i { font-size: .7rem; }

.hoa-auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(30,41,59,.08);
  border: 1px solid #eef1f7;
  padding: 34px 32px;
}
.hoa-auth-card-header {
  text-align: center;
  margin-bottom: 24px;
}
.hoa-auth-icon {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.hoa-auth-card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}
.hoa-auth-card-header p {
  font-size: .82rem;
  color: #64748b;
  margin-bottom: 0;
}

.hoa-auth-alert {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
  padding: .6rem .9rem;
  border-radius: 6px;
  margin-bottom: 16px;
}
.hoa-auth-alert-danger  { background: #fff5f5; color: #b91c1c; border-left: 3px solid #dc2626; }
.hoa-auth-alert-success { background: #f0fdf4; color: #15803d; border-left: 3px solid #16a34a; }

.hoa-auth-field { margin-bottom: 16px; }
.hoa-auth-field label {
  font-size: .76rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .35rem;
  display: block;
}
.hoa-auth-input-group {
  position: relative;
}
.hoa-auth-input-group > i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: .82rem;
  pointer-events: none;
}
.hoa-auth-input-group .form-control {
  padding-left: 38px !important;
  height: 42px;
}

.hoa-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hoa-auth-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: #475569;
}
.hoa-auth-remember label { margin-bottom: 0; cursor: pointer; }
.hoa-auth-link {
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent) !important;
}
.hoa-auth-link:hover { text-decoration: underline; }

.hoa-auth-submit {
  height: 42px;
  font-weight: 600 !important;
  font-size: .88rem !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 14px rgba(79,142,247,.3) !important;
}

.hoa-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 16px;
  color: #94a3b8;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hoa-auth-divider::before,
.hoa-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e8edf5;
}
.hoa-auth-divider span { padding: 0 12px; white-space: nowrap; }

.hoa-auth-register {
  height: 42px;
  font-weight: 500 !important;
  font-size: .85rem !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.hoa-auth-footer {
  margin-top: 22px;
  font-size: .75rem;
  color: #94a3b8;
  text-align: center;
}

/* Wider card variant for Register (more fields) */
.hoa-auth-card-wide { max-width: 460px !important; }

/* Side-by-side field pair (password + confirm) */
.hoa-auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

/* Optional label hint */
.hoa-auth-optional {
  font-size: .7rem;
  font-weight: 400;
  color: #94a3b8;
}

/* Dynamic alert classes set by code-behind (ForgotPassword / ResetPassword) */
.hoa-auth-card .alert {
  font-size: .8rem;
  font-weight: 500;
  padding: .6rem .9rem;
  border-radius: 6px;
  margin-bottom: 16px;
  border: none;
}
.hoa-auth-card .alert-success { background: #f0fdf4 !important; color: #15803d !important; border-left: 3px solid #16a34a !important; }
.hoa-auth-card .alert-danger  { background: #fff5f5 !important; color: #b91c1c !important; border-left: 3px solid #dc2626 !important; }

@media (max-width: 991px) {
  .hoa-auth-brand { display: none; }
  .hoa-auth-form-panel { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .hoa-auth-field-row { grid-template-columns: 1fr; }
  .hoa-auth-card, .hoa-auth-card-wide { padding: 24px 18px; }
}
