/* =========================================================
   VANKAD - FULL app.css (Bootstrap-friendly NeoGlass UI)
   Works with:
   - Bootstrap 5.3.3 (CDN)
   - Bootstrap Icons
   - Pure PHP pages
   Mobile responsive + animated cards + modern dashboard shell
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root{
  --bg:#F7F8FF;
  --text: #102033;
  --muted: #6B7A90;
  --line: rgba(16,32,51,.12);

  --brand1:#3B82F6; /* Vankad blue */
  --brand2:#F7C948; /* Vankad gold */
  --good:#22c55e;
  --warn:#F59E0B;
  --bad:#EF4444;

  --r:18px;
  --r2:26px;

  --shadow: 0 18px 60px rgba(16,32,51,.12);
  --shadow2: 0 10px 30px rgba(16,32,51,.09);

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(800px 480px at 18% 12%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(760px 460px at 80% 18%, rgba(247,201,72,.16), transparent 55%),
    radial-gradient(560px 360px at 50% 110%, rgba(59,130,246,.10), transparent 60%),
    linear-gradient(180deg, #F9FAFD 0%, #F3F6FF 100%);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
small{ color: var(--muted); }

/* Better default focus (accessibility) */
:focus-visible{
  outline: 2px solid rgba(124,58,237,.55);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ---------- Utilities ---------- */
.container{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.p-24{ padding:24px; }
.p-18{ padding:18px; }
.mt-16{ margin-top:16px; }
.mt-24{ margin-top:24px; }
.mb-10{ margin-bottom:10px; }
.mb-16{ margin-bottom:16px; }

.h1{
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
}
.h2{
  font-size: 18px;
  margin: 0 0 8px 0;
}
.muted{ color: var(--muted); }

hr.sep{
  border:0;
  border-top:1px solid var(--line);
  margin: 18px 0;
}

/* ---------- Glass / Cards ---------- */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border: 1px solid var(--line);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-soft{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.80));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
}

/* Neo-glass layer (Bootstrap-friendly) */
.neo-glass{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(16,32,51,.10);
  backdrop-filter: blur(16px);
}

.neo-card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
  overflow: hidden;
  position: relative;
}
.neo-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(124,58,237,.22), transparent 55%),
    radial-gradient(600px 200px at 80% 0%, rgba(6,182,212,.18), transparent 55%);
  opacity:.55;
  pointer-events:none;
}
.neo-card:hover{
  transform: translateY(-3px);
  filter: brightness(1.03);
  border-color: rgba(124,58,237,.28);
}

/* KPI card */
.kpi{
  padding: 16px;
}
.kpi .num{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.kpi .label{
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Badges / Pills ---------- */
.badge-ui{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 13px;
}
.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  box-shadow: 0 0 18px rgba(124,58,237,.35);
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

/* Icon chip */
.icon-chip{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(16,32,51,.12);
  background: rgba(59,130,246,.10);
  box-shadow: 0 18px 50px rgba(59,130,246,.08);
}

/* Status chips */
.status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  font-size: 13px;
}
.status.good{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.10); }
.status.warn{ border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.10); }
.status.bad{  border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10); }

/* ---------- Forms ---------- */
label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.input,
select,
textarea{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  color: var(--text);
  outline: none;
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
}

textarea{ min-height:110px; resize: vertical; }

.input:focus,
select:focus,
textarea:focus{
  border-color: rgba(59,130,246,.75);
  background: rgba(255,255,255,1);
}

/* ---------- Buttons (works without Bootstrap too) ---------- */
.btn-ui{
  border:0;
  cursor:pointer;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.btn-ui:active{ transform: translateY(1px) scale(.99); }

.btn-primary-ui{
  color: white;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  box-shadow: 0 16px 40px rgba(124,58,237,.18);
}
.btn-primary-ui:hover{ filter: brightness(1.06); }

.btn-ghost-ui{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.btn-ghost-ui:hover{ filter: brightness(1.04); }

/* ---------- Alerts ---------- */
.alert-ui{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: rgba(255,255,255,.92);
}

/* ---------- Tables (Bootstrap compatible) ---------- */
.table-ui{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.table-ui th,
.table-ui td{
  padding: 12px 12px;
  text-align:left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.table-ui th{
  color: var(--muted);
  font-weight: 700;
  background: rgba(255,255,255,.04);
}
.table-ui tr:last-child td{ border-bottom:0; }

/* ---------- Animations ---------- */
@keyframes floatIn {
  from { opacity:0; transform: translateY(10px) scale(.99); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.float-in{ animation: floatIn .55s ease both; }
.delay-1{ animation-delay: .06s; }
.delay-2{ animation-delay: .12s; }
.delay-3{ animation-delay: .18s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce){
  .float-in, .neo-card{ animation:none !important; transition:none !important; }
}

/* ---------- Admin Shell (Sidebar + Main) ---------- */
.shell{
  min-height:100vh;
  display:grid;
  grid-template-columns: 280px 1fr;
}

@media (max-width: 980px){
  .shell{ grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar{
  padding: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
@media (max-width: 980px){
  .sidebar{
    height: auto;
    position: relative;
  }
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.logo{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 16px 40px rgba(6,182,212,.16);
}

.brand strong{ font-size: 15px; }
.brand span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav{
  margin-top: 14px;
  display:grid;
  gap: 8px;
}
.nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: var(--line);
}
.nav a.active{
  color: var(--text);
  background: rgba(124,58,237,.14);
  border-color: rgba(124,58,237,.32);
}
.nav .hint{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,255,255,.05);
}

/* Main */
.main{
  padding: 18px 18px 60px 18px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow2);
}

.topbar .right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
}

/* ---------- Login page helper ---------- */
.center-screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 30px 0;
}

/* ---------- Bootstrap Harmony Overrides ---------- */
/* Keep Bootstrap components readable on light glass background */
.text-muted{ color: rgba(16,32,51,.65) !important; }
.border{ border-color: rgba(16,32,51,.12) !important; }

/* Bootstrap buttons: keep your glow vibe */
.btn-primary{
  background: linear-gradient(90deg,var(--brand1),var(--brand2)) !important;
  border: 0 !important;
  box-shadow: 0 16px 40px rgba(59,130,246,.18);
}
.btn-outline-light{
  border-color: rgba(16,32,51,.12) !important;
  color: var(--text) !important;
}
.btn-outline-light:hover{
  background: rgba(59,130,246,.08) !important;
}

/* Bootstrap cards on light background */
.card{
  background: rgba(255,255,255,.95) !important;
  border-color: rgba(16,32,51,.08) !important;
  border-radius: 18px !important;
}

/* Bootstrap modal */
.modal-content{
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,255,.95)) !important;
  border: 1px solid rgba(16,32,51,.08) !important;
  border-radius: 22px !important;
  backdrop-filter: blur(14px);
  color: var(--text) !important;
}
.modal-header, .modal-footer{
  border-color: rgba(16,32,51,.10) !important;
}

/* Bootstrap dropdown */
.dropdown-menu{
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(16,32,51,.10) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(14px);
}
.dropdown-item{ color: rgba(16,32,51,.88) !important; }
.dropdown-item:hover{ background: rgba(59,130,246,.10) !important; }

/* Bootstrap table light harmony */
.table{
  color: rgba(16,32,51,.88) !important;
}
.table thead th{
  color: rgba(16,32,51,.65) !important;
  border-color: rgba(16,32,51,.12) !important;
}
.table td, .table th{
  border-color: rgba(255,255,255,.12) !important;
}

/* ---------- Small screens tweaks ---------- */
@media (max-width: 520px){
  .container{ width: calc(100% - 28px); }
  .topbar{ flex-direction: column; align-items:flex-start; }
  .nav a{ padding: 11px 12px; }
  .h1{ font-size: 28px; }
}

/* ---------- Optional Toast style (if you use window.vToast in JS) ---------- */
.toast-ui{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  z-index: 9999;
  max-width: min(520px, calc(100% - 40px));
}
:root{
  --blue:#0B1F3B;
  --cyan:#00D1FF;
  --gold:#F7C948;
  --white:#FFFFFF;

  --bg:#F4F7FB;
  --card:#FFFFFF;
  --text:#102033;
  --muted:#6B7A90;
  --line:#E6EDF5;

  --shadow:0 10px 25px rgba(11,31,59,.08);
  --radius:16px;
}

/* ---------- Auth Experience: Neo Glass 3D ---------- */
body.auth-page{
  --auth-bg:#F7F4EF;
  --auth-bg-2:#FFFFFF;

  /* Blue NeoGlass */
  --auth-sky:#00D1FF;
  --auth-indigo:#3B82F6;

  /* Vankad Gold */
  --auth-gold:#C49A6C;

  --auth-line:rgba(59,130,246,.14);

  --auth-text:#1F2937;
  --auth-muted:#64748B;

  margin:0;
  min-height:100vh;
  color:var(--auth-text);

  --auth-line:#E8E2DA;
  --auth-shadow:0 28px 80px rgba(1,6,17,.44);
  --auth-inner:inset 0 1px 0 rgba(255,255,255,.20);
  margin:0;
  min-height:100vh;
  color:var(--auth-text);
  font-family:"Segoe UI Variable","Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
 background:
  radial-gradient(
    880px 520px at 12% 12%,
    rgba(0,209,255,.16),
    transparent 58%
  ),

  radial-gradient(
    780px 480px at 86% 10%,
    rgba(59,130,246,.14),
    transparent 60%
  ),

  radial-gradient(
    720px 460px at 50% 100%,
    rgba(196,154,108,.10),
    transparent 62%
  ),

  linear-gradient(
    140deg,
    #F7F4EF,
    #FAFAFA 55%,
    #FFFFFF
  );
  position:relative;
  overflow-x:hidden;
}

body.auth-page::before,
body.auth-page::after{
  content:"";
  position:fixed;
  width:360px;
  height:360px;
  border-radius:999px;
  filter:blur(18px);
  pointer-events:none;
  opacity:.65;
}

body.auth-page::before{
  top:-90px;
  right:-70px;
  background:radial-gradient(circle, rgba(100,229,255,.30), transparent 62%);
}

body.auth-page::after{
  left:-120px;
  bottom:-120px;
  background:radial-gradient(circle, rgba(125,108,255,.28), transparent 60%);
}

.auth-page a{ color:inherit; }

.auth-scene{
  width:min(1180px, calc(100% - 40px));
  min-height:100vh;
  margin:0 auto;
  padding:36px 0 44px;
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(380px, .92fr);
  gap:32px;
  align-items:center;
  position:relative;
  perspective:1600px;
}

.auth-panel,
.auth-card,
.auth-feature-card,
.auth-showcase,
.auth-stat{
  transform-style:preserve-3d;
}

.auth-orb{
  position:absolute;
  border-radius:999px;
  pointer-events:none;
  opacity:.9;
}

.auth-orb.one{
  width:116px;
  height:116px;
  top:10%;
  left:48%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(100,229,255,.22) 52%, transparent 70%);
  animation:authDrift 9s ease-in-out infinite;
}

.auth-orb.two{
  width:88px;
  height:88px;
  right:2%;
  bottom:18%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.50), rgba(247,202,98,.20) 50%, transparent 70%);
  animation:authDrift 11s ease-in-out infinite reverse;
}

.auth-orb.three{
  width:64px;
  height:64px;
  left:8%;
  bottom:14%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.46), rgba(125,108,255,.24) 50%, transparent 68%);
  animation:authDrift 10s ease-in-out infinite;
}

.auth-panel{
  position:relative;
  z-index:1;
}

.auth-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
  color:var(--auth-text);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  box-shadow:0 16px 34px rgba(5,12,26,.26);
  backdrop-filter:blur(16px);
}

.auth-kicker::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--auth-sky), var(--auth-gold));
  box-shadow:0 0 24px rgba(100,229,255,.60);
}

.auth-title{
  margin:20px 0 14px;
  font-size:clamp(42px, 5.2vw, 72px);
  line-height:.94;
  letter-spacing:-.05em;
  max-width:720px;
  text-wrap:balance;
}

.auth-description{
  max-width:640px;
  margin:0;
  font-size:18px;
  line-height:1.7;
  color:var(--auth-muted);
}

.auth-hero-stack{
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.auth-showcase,
.auth-feature-card,
.auth-card,
.auth-stat{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  border:1px solid var(--auth-line);
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.92),
    rgba(255,255,255,.72) rgba(255,255,255,.06));
  box-shadow:var(--auth-shadow), var(--auth-inner);
  backdrop-filter:blur(24px);
}

.auth-showcase::before,
.auth-feature-card::before,
.auth-card::before,
.auth-stat::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  background:
    radial-gradient(280px 100px at 10% 0%, rgba(100,229,255,.22), transparent 70%),
    radial-gradient(240px 100px at 90% 0%, rgba(247,202,98,.16), transparent 70%);
  opacity:.9;
  pointer-events:none;
}

.auth-showcase{
  min-height:250px;
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  grid-row:span 2;
}

.auth-showcase-head,
.auth-card-top,
.auth-feature-card-head{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.auth-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(59,130,246,.14);
  border:1px solid rgba(59,130,246,.28);
  color: rgba(16,32,51,.88);
  font-size:12px;
  font-weight:700;
}

.auth-chip i{
  width:8px;
  height:8px;
  display:inline-block;
  border-radius:999px;
  background:linear-gradient(135deg, var(--auth-sky), var(--auth-gold));
  box-shadow:0 0 18px rgba(100,229,255,.5);
}

.auth-showcase-grid{
  position:relative;
  z-index:1;
  display:grid;
  gap:14px;
  margin-top:24px;
}

.auth-flow-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-radius:20px;
  background:rgba(59,130,246,.08);
  border:1px solid rgba(59,130,246,.15);
}

.auth-flow-step{
  width:42px;
  height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#03101f;
  background:linear-gradient(135deg, var(--auth-sky), var(--auth-gold));
  box-shadow:0 16px 30px rgba(4,11,22,.24);
}

.auth-flow-copy strong,
.auth-feature-card strong,
.auth-stat strong,
.auth-meta-card strong{
  display:block;
  font-size:15px;
  letter-spacing:-.01em;
}

.auth-flow-copy span,
.auth-feature-card span,
.auth-stat span,
.auth-meta-card span{
  display:block;
  margin-top:4px;
  color:var(--auth-muted);
  font-size:13px;
  line-height:1.5;
}

.auth-arrow{
  color:rgba(255,255,255,.68);
  font-size:18px;
}

.auth-feature-card{
  padding:20px;
}

.auth-feature-card-icon{
  position:relative;
  z-index:1;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:18px;
  border:1px solid rgba(59,130,246,.18);
  background:rgba(255,255,255,.95);
  box-shadow:0 18px 30px rgba(59,130,246,.08);
}

.auth-feature-card svg{
  width:22px;
  height:22px;
}

.auth-feature-card-copy,
.auth-card-copy{
  position:relative;
  z-index:1;
}

.auth-stat-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.auth-stat{
  padding:18px;
  min-height:132px;
}

.auth-stat .auth-stat-value{
  position:relative;
  z-index:1;
  margin-top:16px;
  font-size:30px;
  font-weight:900;
  letter-spacing:-.04em;
}

.auth-form-panel{
  position:relative;
  z-index:1;
}

.auth-card{
  width:min(100%, 470px);
  margin-left:auto;
  padding:28px;
  transition:transform .18s ease, box-shadow .18s ease;
}

.auth-card:hover,
.auth-showcase:hover,
.auth-feature-card:hover,
.auth-stat:hover{
  box-shadow:0 34px 88px rgba(1,6,17,.52), inset 0 1px 0 rgba(255,255,255,.22);
}

.auth-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.auth-brand-mark{
  width:56px;
  height:56px;
  flex:0 0 auto;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.65), transparent 46%),
    linear-gradient(135deg, rgba(100,229,255,.30), rgba(125,108,255,.28) 58%, rgba(247,202,98,.28));
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 20px 34px rgba(3,9,20,.24);
  overflow:hidden;
}

.auth-brand-mark img{
  width:38px;
  height:38px;
  object-fit:contain;
}

.auth-brand-copy strong{
  display:block;
  font-size:18px;
  letter-spacing:-.02em;
}

.auth-brand-copy span{
  display:block;
  margin-top:4px;
  color:var(--auth-muted);
  font-size:12px;
}

.auth-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(59,130,246,.18);
  background:rgba(255,255,255,.92);
  color: rgba(16,32,51,.88);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.auth-badge::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--auth-sky), var(--auth-indigo));
  box-shadow:0 0 18px rgba(100,229,255,.48);
}

.auth-card-copy{
  margin-top:24px;
}

.auth-heading{
  margin:0;
  font-size:34px;
  line-height:1.02;
  letter-spacing:-.04em;
}

.auth-subtitle{
  margin:12px 0 0;
  color:var(--auth-muted);
  font-size:15px;
  line-height:1.7;
}

.auth-alert{
  position:relative;
  z-index:1;
  margin-top:20px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,130,130,.28);
  background:linear-gradient(180deg, rgba(255,92,92,.20), rgba(92,12,18,.18));
  color:#fff7f7;
  box-shadow:0 14px 28px rgba(61,8,8,.16);
}

.auth-form{
  position:relative;
  z-index:1;
  display:grid;
  gap:18px;
  margin-top:22px;
}

.auth-field{
  display:grid;
  gap:9px;
}

.auth-label{
  margin:0;
  color:rgba(244,251,255,.86);
  font-size:13px;
  font-weight:700;
  letter-spacing:.01em;
}

.auth-hint{
  color:var(--auth-muted);
  font-size:12px;
}

.auth-input-wrap{
  position:relative;
}

.auth-input{
  width:100%;
  padding:16px 18px;
  border-radius:20px;
  border:1px solid var(--auth-line);
  background:rgba(8,24,46,.70);
  color:var(--auth-text);
  font-size:15px;
  line-height:1.4;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.auth-input::placeholder{
  color:rgba(226,238,255,.42);
}

.auth-input:focus{
  border-color:rgba(100,229,255,.56);
  background:rgba(10,28,54,.84);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 4px rgba(100,229,255,.14),
    0 12px 30px rgba(4,13,28,.24);
  transform:translateY(-1px);
}

.auth-toggle{
  position:absolute;
  top:50%;
  right:12px;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:rgba(244,251,255,.86);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.auth-toggle:hover{
  background:rgba(255,255,255,.12);
}

.auth-submit{
  position:relative;
  width:100%;
  min-height:58px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:20px;
  padding:16px 20px;
  cursor:pointer;
  color:#05101f;
  background:linear-gradient(135deg, var(--auth-sky), var(--auth-gold));
  box-shadow:0 26px 40px rgba(4,16,34,.30);
  font-size:15px;
  font-weight:900;
  letter-spacing:.02em;
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.auth-submit:hover{
  filter:brightness(1.04);
  transform:translateY(-2px);
  box-shadow:0 30px 50px rgba(4,16,34,.38);
}

.auth-submit:disabled{
  cursor:wait;
}

.auth-submit.is-busy{
  opacity:.94;
}

.auth-submit-spinner{
  display:none;
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid rgba(16,32,51,.18);
  border-top-color: var(--brand1);
}

.auth-submit.is-busy .auth-submit-spinner{
  display:inline-block;
  animation:authSpin .9s linear infinite;
}

.auth-meta{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:22px;
}

.auth-meta-card{
  padding:14px 16px;
  border-radius:20px;
  border:1px solid rgba(59,130,246,.18);
  background:rgba(255,255,255,.95);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.70);
}

.auth-footnote{
  position:relative;
  z-index:1;
  margin-top:18px;
  font-size:12px;
  line-height:1.7;
  color:var(--auth-muted);
}

.auth-aux{
  margin-top:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--auth-muted);
  font-size:12px;
}

.auth-trust{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.auth-trust::before{
  content:"";
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.80), transparent 38%),
    linear-gradient(135deg, rgba(100,229,255,.38), rgba(247,202,98,.42));
}

.auth-layer-1{ transform:translateZ(18px); }
.auth-layer-2{ transform:translateZ(32px); }
.auth-layer-3{ transform:translateZ(50px); }

[data-tilt-card]{
  transition:transform .18s ease, box-shadow .18s ease;
  will-change:transform;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

@keyframes authDrift{
  0%, 100%{ transform:translate3d(0, 0, 0); }
  50%{ transform:translate3d(0, -16px, 0); }
}

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

@media (max-width: 1040px){
  .auth-scene{
    grid-template-columns:1fr;
    gap:22px;
    padding:24px 0 40px;
  }

  .auth-form-panel{
    order:1;
  }

  .auth-panel{
    order:2;
  }

  .auth-card{
    margin:0 auto;
  }
}

@media (max-width: 760px){
  .auth-scene{
    width:min(100%, calc(100% - 26px));
  }

  .auth-title{
    font-size:clamp(34px, 11vw, 52px);
  }

  .auth-description{
    font-size:16px;
  }

  .auth-hero-stack,
  .auth-stat-grid,
  .auth-meta{
    grid-template-columns:1fr;
  }

  .auth-card{
    width:100%;
    padding:22px;
  }

  .auth-card-top{
    align-items:flex-start;
    flex-direction:column;
  }

  .auth-showcase{
    min-height:unset;
    grid-row:auto;
  }

  .auth-aux{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (prefers-reduced-motion: reduce){
  .auth-orb,
  .auth-submit,
  [data-tilt-card]{
    animation:none !important;
    transition:none !important;
    transform:none !important;
  }
}
