/* =============================================================================
   Chit Fund ERP – Glass theme
   Three-colour palette: deep brown · rust · warm amber.
   Frosted translucent surfaces, layered soft shadows, glowing focus states.
   ============================================================================= */
:root {
  --navy: #3E1608;  /* deep brown (variable names kept for compatibility) */
  --navy-2: #7A2A10;
  --blue: #B4461F;
  --cyan: #E8913A;
  --brand: var(--blue);              /* used by a few inline styles */
  --brand-dark: var(--navy-2);
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-navy: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  --ink: #2B1A12;
  --muted: #7A6558;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .75);
  --hairline: rgba(74, 30, 12, .08);
  --shadow: 0 1px 1px rgba(74, 30, 12, .04), 0 10px 30px -12px rgba(74, 30, 12, .28);
  --shadow-lg: 0 2px 4px rgba(74, 30, 12, .05), 0 22px 50px -18px rgba(74, 30, 12, .40);
  --glow: 0 0 0 4px rgba(232, 145, 58, .16), 0 0 22px rgba(180, 70, 31, .22);
  --radius: 16px;
  --sidebar-w: 248px;

  /* Bootstrap overrides */
  --bs-body-color: var(--ink);
  --bs-body-font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-primary: var(--blue);
  --bs-primary-rgb: 180, 70, 31;
  --bs-link-color: var(--blue);
  --bs-link-color-rgb: 180, 70, 31;
  --bs-link-hover-color: var(--navy-2);
  --bs-link-hover-color-rgb: 122, 42, 16;
  --bs-border-color: rgba(74, 30, 12, .12);
  --bs-secondary-color: var(--muted);
}

/* ---------------------------------------------------------------- canvas */
body.app {
  color: var(--ink);
  background-color: #F6EFE9;
  background-image:
    radial-gradient(900px 520px at 8% -6%, rgba(180, 70, 31, .20), transparent 60%),
    radial-gradient(760px 520px at 100% 0%, rgba(232, 145, 58, .20), transparent 62%),
    radial-gradient(900px 700px at 55% 110%, rgba(122, 42, 16, .14), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(232, 145, 58, .25); }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- sidebar */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1030; color: #fff;
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(232, 145, 58, .28), transparent 60%),
    radial-gradient(380px 300px at 100% 100%, rgba(180, 70, 31, .35), transparent 60%),
    linear-gradient(180deg, #3E1608 0%, #5A1F0B 55%, #3E1608 100%);
  box-shadow: 6px 0 30px -10px rgba(60, 20, 8, .55);
  border-right: 1px solid rgba(255, 255, 255, .06);
  transition: transform .25s ease;
}
.admin .sidebar {
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(180, 70, 31, .30), transparent 60%),
    linear-gradient(180deg, #2A1208 0%, #4A1A0A 100%);
}
.sidebar .brand {
  display: flex; align-items: center; gap: .7rem; padding: 1.05rem 1.1rem; color: #fff; text-decoration: none;
  font-weight: 700; letter-spacing: .1px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sidebar .brand i {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; font-size: 1.15rem; color: #fff;
  background: var(--grad); box-shadow: 0 6px 18px -4px rgba(232, 145, 58, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sidebar .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .nav { padding: .7rem .6rem; overflow-y: auto; flex-wrap: nowrap; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.sidebar .nav-link {
  color: rgba(255, 235, 220, .78); border-radius: 11px; padding: .52rem .8rem; margin: 1px 0;
  display: flex; gap: .7rem; align-items: center; font-size: .935rem; position: relative;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.sidebar .nav-link i { font-size: 1.02rem; opacity: .9; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.sidebar .nav-link.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(180, 70, 31, .55), rgba(232, 145, 58, .22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 8px 20px -10px rgba(232, 145, 58, .8);
}
.sidebar .nav-link.active::before {
  content: ''; position: absolute; left: -.6rem; top: 22%; bottom: 22%; width: 3px; border-radius: 3px;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
.sidebar .nav-link.active i { color: #FFD49A; opacity: 1; }
.sidebar .nav-section { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 210, 170, .55); padding: 1.05rem .8rem .35rem; }
.sidebar-foot { padding: .85rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }

/* ---------------------------------------------------------------- layout */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1020; padding: .7rem 1.4rem;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 6px 24px -14px rgba(74, 30, 12, .35);
}
.topbar h1 { font-weight: 700; color: var(--navy); letter-spacing: -.2px; }
.content { padding: 1.4rem; flex: 1; max-width: 1440px; width: 100%; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(60, 20, 8, .55); }
  .main { margin-left: 0; }
  .content { padding: 1rem; }
}

/* ---------------------------------------------------------------- glass surfaces */
.card, .list-group, .dropdown-menu, .modal-content {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.card { --bs-card-bg: transparent; --bs-card-border-color: transparent; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.card-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15));
  border-bottom: 1px solid var(--hairline); font-weight: 700; color: var(--navy); padding: .8rem 1.1rem;
}
.card-body { padding: 1.1rem 1.2rem; }
.card .card-body.border-top, .card .border-top { border-color: var(--hairline) !important; }
.card .bg-light, .bg-light { background: rgba(180, 70, 31, .045) !important; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--glow); }

/* ---------------------------------------------------------------- stat tiles */
.stat { padding: 1.05rem 1.15rem; position: relative; }
.stat::after { /* glossy top highlight */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: .9;
}
.row > div:nth-child(3n+2) > .stat::after { background: linear-gradient(90deg, var(--cyan), #F4B26B); }
.row > div:nth-child(3n) > .stat::after { background: var(--grad-navy); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat .label { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.stat .value { font-size: 1.55rem; font-weight: 800; color: var(--navy); letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.stat .icon {
  width: 46px; height: 46px; flex: none; display: inline-grid; place-items: center; border-radius: 14px;
  font-size: 1.25rem; color: #fff; opacity: 1; background: var(--grad);
  box-shadow: 0 10px 22px -8px rgba(180, 70, 31, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.row > div:nth-child(3n+2) > .stat .icon { background: linear-gradient(135deg, #C9651F, #F4B26B); box-shadow: 0 10px 22px -8px rgba(232, 145, 58, .7), inset 0 1px 0 rgba(255,255,255,.35); }
.row > div:nth-child(3n) > .stat .icon { background: var(--grad-navy); box-shadow: 0 10px 22px -8px rgba(122, 42, 16, .7), inset 0 1px 0 rgba(255,255,255,.3); }

/* ---------------------------------------------------------------- tables */
.table {
  --bs-table-bg: transparent; --bs-table-striped-bg: rgba(180, 70, 31, .035);
  --bs-table-hover-bg: rgba(180, 70, 31, .06); --bs-table-border-color: var(--hairline);
  margin-bottom: 0;
}
.table td, .table th { vertical-align: middle; }
.table > :not(caption) > * > * { padding: .62rem .8rem; }
.table-sm > :not(caption) > * > * { padding: .4rem .5rem; }
.table .num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table thead th {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6E5446;
  background: linear-gradient(180deg, rgba(180, 70, 31, .07), rgba(232, 145, 58, .05)); border-bottom: 1px solid rgba(180, 70, 31, .14);
}
.table tfoot td, .table-light, .table-light > * { background: rgba(180, 70, 31, .06) !important; --bs-table-bg: transparent; color: var(--navy); }
.table-warning, .table-warning > td { --bs-table-bg: rgba(232, 145, 58, .10); }
.table-bordered > :not(caption) > * > * { border-color: var(--hairline); }
.table-secondary { --bs-table-bg: rgba(74, 30, 12, .06); }
.table-info { --bs-table-bg: rgba(232, 145, 58, .12); }
.table a { font-weight: 500; }

/* ---------------------------------------------------------------- forms: glass inputs with glow */
.form-label { font-weight: 600; font-size: .86rem; color: #4A3226; margin-bottom: .35rem; }
.form-text { color: var(--muted); }
.form-control, .form-select {
  background-color: rgba(255, 255, 255, .72);
  border: 1px solid rgba(74, 30, 12, .14);
  border-radius: 11px;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(74, 30, 12, .06);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.form-control::placeholder { color: #A8958A; }
.form-control:hover, .form-select:hover { border-color: rgba(180, 70, 31, .35); background-color: rgba(255, 255, 255, .86); }
.form-control:focus, .form-select:focus {
  background-color: #fff; border-color: var(--cyan); outline: 0;
  box-shadow: var(--glow), inset 0 1px 2px rgba(74, 30, 12, .04);
}
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: rgba(74, 30, 12, .045); color: #6E5446; }
.form-control-sm, .form-select-sm { border-radius: 9px; }
.form-control-lg { border-radius: 13px; font-weight: 700; }
.form-check-input { border-color: rgba(74, 30, 12, .25); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); box-shadow: 0 0 10px rgba(180, 70, 31, .45); }
.form-check-input:focus { border-color: var(--cyan); box-shadow: var(--glow); }
.form-switch .form-check-input:checked { background-color: var(--cyan); border-color: var(--cyan); }
.input-group > .form-control:focus { z-index: 3; }
form .card, form.card, .card:has(.search-results), .card:has(.dropdown-menu) { overflow: visible; }

/* ---------------------------------------------------------------- buttons */
.btn { border-radius: 11px; font-weight: 600; letter-spacing: .1px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-brand, .btn-primary {
  color: #fff; border: 0; background: var(--grad);
  box-shadow: 0 10px 22px -10px rgba(180, 70, 31, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-brand:hover, .btn-brand:focus, .btn-primary:hover, .btn-primary:focus {
  color: #fff; background: var(--grad); filter: brightness(1.07) saturate(1.1);
  box-shadow: 0 14px 28px -10px rgba(180, 70, 31, .95), 0 0 0 4px rgba(232, 145, 58, .16);
  transform: translateY(-1px);
}
.btn-light, .btn-outline-secondary {
  color: var(--navy); background: rgba(255, 255, 255, .6); border: 1px solid rgba(74, 30, 12, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px -8px rgba(74, 30, 12, .35);
}
.btn-light:hover, .btn-outline-secondary:hover { color: var(--blue); background: rgba(255, 255, 255, .92); border-color: rgba(180, 70, 31, .4); box-shadow: 0 8px 18px -10px rgba(180, 70, 31, .6); }
.btn-outline-danger { border-radius: 11px; }
.btn-outline-success:hover { box-shadow: 0 8px 16px -8px rgba(25, 135, 84, .7); }
.btn-outline-danger:hover { box-shadow: 0 8px 16px -8px rgba(220, 53, 69, .7); }
.btn-link { font-weight: 600; text-decoration: none; }
.btn-check:checked + .btn-outline-success { box-shadow: 0 0 14px rgba(25, 135, 84, .55); }
.btn-check:checked + .btn-outline-danger { box-shadow: 0 0 14px rgba(220, 53, 69, .55); }
.btn-check:checked + .btn-outline-warning { box-shadow: 0 0 14px rgba(255, 193, 7, .6); }

/* ---------------------------------------------------------------- badges, alerts, tabs, misc */
.badge { border-radius: 999px; font-weight: 600; padding: .38em .72em; letter-spacing: .2px; }
.text-bg-success { background: linear-gradient(135deg, #059669, #10B981) !important; }
.text-bg-info { background: var(--grad) !important; color: #fff !important; }
.text-bg-light { background: rgba(180, 70, 31, .09) !important; color: var(--navy) !important; }
.alert {
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  border-left-width: 4px;
}
.alert-success { background: rgba(16, 185, 129, .12); border-left-color: #10B981; color: #065F46; }
.alert-danger { background: rgba(239, 68, 68, .11); border-left-color: #EF4444; color: #7F1D1D; }
.alert-warning { background: rgba(245, 158, 11, .13); border-left-color: #F59E0B; color: #78350F; }
.alert-info { background: rgba(232, 145, 58, .12); border-left-color: var(--cyan); color: #7A3A0E; }

.nav-tabs { border-bottom: 0; gap: .35rem; padding: 0 .2rem; }
.nav-tabs .nav-link {
  border: 1px solid transparent; border-radius: 12px 12px 0 0; color: var(--muted); font-weight: 600;
  background: rgba(255, 255, 255, .35); padding: .6rem 1.05rem;
}
.nav-tabs .nav-link:hover { color: var(--blue); background: rgba(255, 255, 255, .6); border-color: transparent; }
.nav-tabs .nav-link.active {
  color: var(--navy); background: var(--glass-strong); border: 1px solid var(--glass-border); border-bottom-color: transparent;
  box-shadow: 0 -6px 18px -12px rgba(180, 70, 31, .6); position: relative;
}
.nav-tabs .nav-link.active::after { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.nav-tabs + .card { border-top-left-radius: 4px; }

.list-group-item { background: transparent; border-color: var(--hairline); }
.list-group-item-action:hover { background: rgba(180, 70, 31, .07); color: var(--blue); }
.dropdown-menu { padding: .4rem; background: var(--glass-strong); }
.dropdown-item { border-radius: 9px; padding: .45rem .75rem; }
.dropdown-item:hover { background: rgba(180, 70, 31, .09); color: var(--blue); }
.progress { background: rgba(74, 30, 12, .08); border-radius: 999px; }
.progress-bar { background: var(--grad); border-radius: 999px; }
.progress-bar.bg-success { background: var(--grad) !important; }
.progress-bar.bg-danger { background: linear-gradient(90deg, #F97316, #EF4444) !important; }
.pagination .page-link { border-radius: 9px !important; margin: 0 2px; border-color: var(--hairline); background: rgba(255, 255, 255, .6); color: var(--navy); }
.pagination .page-item.disabled .page-link { background: rgba(255, 255, 255, .3); }
code { color: var(--blue); background: rgba(180, 70, 31, .08); padding: .1em .4em; border-radius: 6px; font-size: .86em; }

.page-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 1.1rem; }
.page-actions .spacer { flex: 1; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; align-items: end; }
.filters .form-control, .filters .form-select { min-width: 150px; }
.filters .form-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.1rem; margin: 0; }
dl.kv dt { font-weight: 600; color: var(--muted); font-size: .9rem; }
dl.kv dd { margin: 0; }
.calc-box {
  background: linear-gradient(135deg, rgba(180, 70, 31, .08), rgba(232, 145, 58, .10));
  border: 1px solid rgba(232, 145, 58, .35); border-radius: 13px; padding: .8rem 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 18px -12px rgba(232, 145, 58, .7);
}
.calc-box strong { color: var(--navy); }
.chart-wrap { position: relative; height: 250px; }
.search-results { position: absolute; z-index: 10; width: 100%; max-height: 280px; overflow-y: auto; margin-top: 6px; box-shadow: var(--shadow-lg); }
.search-results:empty { display: none; }
.empty { text-align: center; color: var(--muted); padding: 2.2rem 1rem; }
.text-danger { color: #E11D48 !important; }
.text-success { color: #059669 !important; }
.text-muted { color: var(--muted) !important; }
hr { border-color: var(--hairline); opacity: 1; }

/* ---------------------------------------------------------------- login / error / subscription screens */
body.plain {
  min-height: 100vh; color: var(--ink);
  background-color: #2A0F05;
  background-image:
    radial-gradient(700px 500px at 12% 8%, rgba(180, 70, 31, .55), transparent 60%),
    radial-gradient(640px 480px at 92% 30%, rgba(232, 145, 58, .45), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(180, 70, 31, .40), transparent 60%),
    linear-gradient(160deg, #2A0F05, #3E1608 60%, #5A1F0B);
  background-attachment: fixed;
}
.plain-wrap { max-width: 440px; margin: 0 auto; padding: 9vh 1rem 2rem; position: relative; }
.login-card {
  border-radius: 22px !important; background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 246, 238, .90)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .55) !important;
  box-shadow: 0 30px 80px -20px rgba(30, 10, 4, .7), 0 0 0 1px rgba(232, 145, 58, .15), 0 0 60px -10px rgba(232, 145, 58, .45) !important;
}
.login-card .logo {
  width: 64px; height: 64px; margin: 0 auto .6rem; display: grid; place-items: center; border-radius: 20px;
  font-size: 1.9rem; color: #fff; background: var(--grad);
  box-shadow: 0 16px 34px -10px rgba(232, 145, 58, .85), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.login-card h1 { color: var(--navy); font-weight: 800 !important; letter-spacing: -.3px; }
.plain .text-white-50 { color: rgba(255, 225, 200, .65) !important; }

/* ---------------------------------------------------------------- print */
.print-page { background: #fff; }
.print-page .card, .receipt-sheet { -webkit-backdrop-filter: none; backdrop-filter: none; }
.receipt-sheet { max-width: 720px; margin: 0 auto; padding: 1.5rem; border: 1px solid #ccd5e6; border-radius: 10px; background: #fff; }
@media print {
  body.app { background: #fff !important; }
  .no-print, .sidebar, .topbar { display: none !important; }
  .main { margin: 0; }
  .card { background: #fff !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid #ddd !important; }
  .receipt-sheet { border: 0; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* gradient icon chip (reports menu and similar launchers) */
.ic-chip {
  width: 48px; height: 48px; flex: none; display: inline-grid; place-items: center; border-radius: 14px;
  font-size: 1.3rem; color: #fff; background: var(--grad);
  box-shadow: 0 10px 22px -8px rgba(180, 70, 31, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* compact stat tiles on phones */
@media (max-width: 575.98px) {
  .stat { padding: .85rem .9rem; }
  .stat .value { font-size: 1.12rem; letter-spacing: -.2px; word-break: break-word; }
  .stat .label { font-size: .64rem; }
  .stat .icon { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
  .topbar h1 { font-size: 1.05rem; }
}

/* dense grids (monthly attendance register) */
.table-bordered.table-sm > :not(caption) > * > * { padding: .32rem .28rem; }
.table-bordered.table-sm thead th { letter-spacing: .02em; }

/* =============================================================================
   Sign-in screen: illustration panel + glass card
   ============================================================================= */
body.auth {
  min-height: 100vh; margin: 0; color: #fff;
  background-color: #2A0F05;
  background-image:
    radial-gradient(760px 560px at 18% 22%, rgba(232, 145, 58, .38), transparent 62%),
    radial-gradient(620px 520px at 85% 85%, rgba(180, 70, 31, .55), transparent 60%),
    radial-gradient(520px 420px at 72% 10%, rgba(244, 178, 107, .18), transparent 60%),
    linear-gradient(150deg, #2A0F05 0%, #3E1608 45%, #5A1F0B 100%);
  background-attachment: fixed;
}
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(380px, 1fr); }

/* left: illustration */
.auth-art { position: relative; display: flex; align-items: center; justify-content: center; padding: 3rem 3.5rem; overflow: hidden; }
.auth-art::before { /* subtle dotted texture */
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 220, 180, .14) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 40% 45%, #000, transparent); mask-image: radial-gradient(70% 70% at 40% 45%, #000, transparent);
}
.auth-art-inner { position: relative; width: 100%; max-width: 640px; }
.auth-kicker {
  display: inline-flex; gap: .45rem; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #FFD9A8; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: .38rem .8rem; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.auth-headline { margin: 1rem 0 .55rem; font-size: clamp(2rem, 3.1vw, 2.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -.8px; color: #FFF6EC; }
.auth-headline span { background: linear-gradient(90deg, #FFD58C, #E8913A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-sub { max-width: 34rem; color: rgba(255, 235, 215, .78); font-size: 1.02rem; margin-bottom: .6rem; }
.login-art { display: block; width: 100%; height: auto; max-height: 52vh; margin: .4rem auto .6rem; }
.la-orbit { transform-box: view-box; transform-origin: 300px 255px; animation: la-spin 70s linear infinite; }
.la-pulse { transform-box: fill-box; transform-origin: center; animation: la-pulse 2.6s ease-in-out infinite; }
@keyframes la-spin { to { transform: rotate(360deg); } }
@keyframes la-pulse { 0%, 100% { transform: scale(1); opacity: .25; } 50% { transform: scale(1.18); opacity: .05; } }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.auth-points li {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: #FFEBD6;
  padding: .5rem .85rem; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.auth-points li i { color: #F4B26B; }

/* right: form */
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 2rem; position: relative; }
.auth-form::before { /* frosted column */
  content: ''; position: absolute; inset: 1.25rem 1.25rem 1.25rem 0; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.auth-form-inner { position: relative; width: 100%; max-width: 420px; }
.auth .login-card .card-body { color: var(--ink); }
.auth .login-card h1 { font-size: 1.55rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #A8958A; pointer-events: none; transition: color .18s ease; }
.input-icon > .form-control { padding-left: 2.45rem; height: 46px; }
.input-icon:focus-within > i { color: var(--blue); }
.auth .btn-brand { height: 48px; font-size: 1rem; }
.auth-credit {
  display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: 1.4rem;
  color: rgba(255, 230, 205, .75); font-size: .78rem; line-height: 1.25;
}
.auth-credit img { height: 40px; width: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.auth-credit b { color: #FFF1E2; }
.auth .alert { color: #7F1D1D; }

@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { padding: 2rem 1.25rem .5rem; }
  .auth-headline { font-size: 1.9rem; }
  .login-art { max-height: 230px; }
  .auth-points, .auth-sub { display: none; }
  .auth-form { padding: .5rem 1rem 2rem; }
  .auth-form::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .la-orbit, .la-pulse { animation: none; } }
@media (min-width: 992px) and (max-height: 780px) {
  .login-art { max-height: 44vh; }
  .auth-art { padding-top: 2rem; padding-bottom: 2rem; }
  .auth-headline { margin-top: .7rem; }
}
