/* ============================================================
   MODZ SHORT — Design System
   Mobile-first · Tokens · Sem dependências
   ============================================================ */

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Tokens ---------- */
:root{
  --bg:        #080D18;
  --bg-2:      #101827;
  --surface:   #151F30;
  --surface-2: #1E2A40;
  --border:    #263450;
  --border-2:  #2F3E5C;

  --primary:   #3478F6;
  --primary-2: #5B9CFF;
  --primary-3: #1E5BD8;

  --success:   #22C55E;
  --danger:    #EF4444;
  --warning:   #F59E0B;

  --text:      #F8FAFC;
  --muted:     #94A3B8;
  --muted-2:   #64748B;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.15);
  --shadow-lg: 0 20px 50px rgba(52,120,246,.15);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur:  .22s;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1180px;
  --topbar-h: 60px;
}

/* ---------- Base ---------- */
body{
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before{
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(52,120,246,.15), transparent 60%),
    radial-gradient(700px 500px at 90% 5%, rgba(91,156,255,.08), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

h1,h2,h3,h4{ margin: 0 0 var(--space-3); line-height: 1.2; letter-spacing: -.01em; }
h1{ font-size: clamp(28px, 6vw, 48px); font-weight: 800; }
h2{ font-size: clamp(22px, 4.5vw, 32px); font-weight: 700; }
h3{ font-size: clamp(17px, 3vw, 20px); font-weight: 600; }
p{ margin: 0 0 var(--space-3); }
small{ font-size: 13px; }

.container{ width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }

/* ---------- A11y ---------- */
.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Topbar ---------- */
.topbar{
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-4);
  background: rgba(8,13,24,.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand{
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 17px; letter-spacing: -.3px;
  color: var(--text);
}
.brand:hover{ text-decoration: none; }
.brand span{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-desktop{ display: none; gap: var(--space-4); align-items: center; }
.nav-desktop a{ color: var(--muted); font-size: 14px; }
.nav-desktop a:hover{ color: var(--text); text-decoration: none; }

.nav-actions{ display: flex; gap: var(--space-2); align-items: center; }

.burger{
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
}
.burger span{
  display: block; height: 2px; width: 20px; background: var(--text);
  margin: 0 auto; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px){
  .nav-desktop{ display: flex; }
  .burger{ display: none; }
}

/* Drawer mobile */
.drawer{
  position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
  background: var(--bg-2); border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  z-index: 100;
  display: flex; flex-direction: column;
  padding: var(--space-5) var(--space-4);
}
.drawer.open{ transform: translateX(0); }
.drawer-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
  z-index: 90;
}
.drawer-backdrop.show{ opacity: 1; pointer-events: auto; }
.drawer a{
  display: block; padding: 14px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 15px;
}
.drawer a:hover{ background: var(--surface); text-decoration: none; }

/* ---------- Botões ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 600; font-size: 15px;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
  box-shadow: 0 8px 22px rgba(52,120,246,.25);
}
.btn:hover{ filter: brightness(1.06); text-decoration: none; transform: translateY(-1px); }
.btn:active{ transform: translateY(0) scale(.99); }
.btn:disabled{ opacity: .5; cursor: not-allowed; transform: none; }

.btn-ghost{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 16px; min-height: 44px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-ghost:hover{ border-color: var(--primary); background: rgba(52,120,246,.06); text-decoration: none; }

.btn-sm{ padding: 8px 12px; min-height: 36px; font-size: 13px; }

/* ---------- Inputs ---------- */
.field{ display: grid; gap: 6px; }
.field label{ font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select{
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52,120,246,.18);
}
.field .hint{ font-size: 12px; color: var(--muted-2); }
.field .error{ font-size: 12px; color: var(--danger); }

/* ---------- Cards ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.card-tight{ padding: var(--space-4); }
.card h2, .card h3{ margin-top: 0; }

/* ---------- Alerts ---------- */
.alert{
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid transparent;
  margin-bottom: var(--space-4);
}
.alert-success{ background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); color: #B7F5C9; }
.alert-error{ background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.35); color: #FFB4BD; }
.alert-warning{ background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); color: #FCE4B5; }

/* ---------- Hero (homepage) ---------- */
.hero{
  padding: var(--space-7) 0 var(--space-6);
}
.hero-inner{
  display: grid; gap: var(--space-6);
}
.hero-title{
  font-size: clamp(30px, 7vw, 54px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.hero-title .accent{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub{
  color: var(--muted); font-size: clamp(15px, 2.5vw, 18px);
  max-width: 560px;
}
.hero-cta{ display: flex; flex-wrap: wrap; gap: var(--space-3); }

.shorten-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: grid; gap: var(--space-3);
  box-shadow: var(--shadow-lg);
}
.shorten-card form{ display: grid; gap: var(--space-3); }
.shorten-card input[type=url]{
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 15px;
}
.shorten-card input[type=url]:focus{ outline: none; border-color: var(--primary); }

.demo-link{
  display: grid; gap: 6px;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: rgba(52,120,246,.06);
  border: 1px dashed var(--border-2);
  font-family: var(--mono);
  font-size: 13px;
}
.demo-link .from{ color: var(--muted); }
.demo-link .arrow{ color: var(--muted-2); }
.demo-link .to{ color: var(--primary-2); font-weight: 600; }

@media (min-width: 900px){
  .hero{ padding: var(--space-8) 0 var(--space-7); }
  .hero-inner{ grid-template-columns: 1.15fr .85fr; align-items: center; gap: var(--space-7); }
}

/* ---------- Section ---------- */
.section{ padding: var(--space-7) 0; }
.section-head{ max-width: 640px; margin-bottom: var(--space-5); }
.section-head .muted{ color: var(--muted); }

.features{
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px){ .features{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .features{ grid-template-columns: repeat(4, 1fr); } }

.feature{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.feature .icon{
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: rgba(52,120,246,.12);
  color: var(--primary-2);
  margin-bottom: var(--space-3);
  font-size: 20px;
}
.feature h3{ font-size: 16px; margin: 0 0 6px; }
.feature p{ color: var(--muted); margin: 0; font-size: 14px; }

.steps{ display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 768px){ .steps{ grid-template-columns: repeat(3, 1fr); } }
.step{ padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step .num{
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 700; font-size: 13px;
  margin-bottom: var(--space-2);
}

.stats{ display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px){ .stats{ grid-template-columns: repeat(4, 1fr); } }
.stat{ text-align: center; padding: var(--space-4) var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat .num{ font-size: clamp(22px, 4vw, 32px); font-weight: 800; color: var(--text); }
.stat .lbl{ font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.faq-item{ border-bottom: 1px solid var(--border); }
.faq-item summary{
  list-style: none; cursor: pointer;
  padding: var(--space-4) 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; color: var(--muted); font-size: 22px; transition: transform var(--dur) var(--ease); }
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ color: var(--muted); padding-bottom: var(--space-4); margin: 0; }

.code-block{
  background: #0A101E;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  font-family: var(--mono);
  font-size: 13px;
  color: #D1DBEA;
  overflow-x: auto;
}
.code-block .kw{ color: #7AA2F7; }
.code-block .str{ color: #9ECE6A; }
.code-block .cm{ color: var(--muted-2); }

/* ---------- Footer ---------- */
.footer{
  border-top: 1px solid var(--border);
  margin-top: var(--space-7);
  padding: var(--space-6) 0 var(--space-5);
  color: var(--muted);
  font-size: 14px;
}
.footer-grid{ display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 768px){ .footer-grid{ grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4{ color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-3); }
.footer a{ display: block; color: var(--muted); margin-bottom: 8px; }
.footer a:hover{ color: var(--text); text-decoration: none; }

/* ---------- Dashboard layout ---------- */
.app{
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 1024px){
  .app{ grid-template-columns: 240px 1fr; }
}

.side{
  display: none;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: var(--space-5) var(--space-3);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
@media (min-width: 1024px){ .side{ display: block; } }

.side .brand{ margin-bottom: var(--space-5); padding: 0 var(--space-3); }
.side-nav{ display: grid; gap: 4px; }
.side-nav a{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  color: var(--muted); border-radius: var(--radius);
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.side-nav a:hover{ color: var(--text); background: var(--surface); text-decoration: none; }
.side-nav a.active{
  color: var(--text); background: var(--surface);
  border-left-color: var(--primary);
}
.side-nav a svg{ width: 18px; height: 18px; opacity: .85; }

.app-main{ display: flex; flex-direction: column; min-width: 0; }

.app-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--space-4);
  border-bottom: 1px solid var(--border);
  background: rgba(8,13,24,.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 30;
  gap: var(--space-3);
}
.app-header h1{ font-size: 17px; margin: 0; font-weight: 700; }

.app-content{ padding: var(--space-4); padding-bottom: 84px; display: grid; gap: var(--space-4); }
@media (min-width: 768px){ .app-content{ padding: var(--space-5); } }
@media (min-width: 1024px){ .app-content{ padding: var(--space-6); padding-bottom: var(--space-6); max-width: 1280px; } }

/* Bottom nav mobile */
.bottom-nav{
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px; padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(16,24,39,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 40;
}
.bottom-nav a{
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 10px; text-decoration: none;
}
.bottom-nav a.active{ color: var(--primary-2); }
.bottom-nav svg{ width: 22px; height: 22px; }
@media (min-width: 1024px){ .bottom-nav{ display: none; } }

/* Cards de stats dashboard */
.stat-grid{
  display: grid; gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 520px){ .stat-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px){ .stat-grid{ grid-template-columns: repeat(4, 1fr); } }

.stat-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.stat-card .label{ font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-card .value{ font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin-top: 4px; }
.stat-card .delta{ font-size: 12px; color: var(--success); margin-top: 2px; }
.stat-card .delta.muted{ color: var(--muted-2); }

/* Gráficos */
.chart-wrap{ position: relative; width: 100%; height: 240px; }
@media (min-width: 768px){ .chart-wrap{ height: 280px; } }
.chart-wrap canvas{ max-width: 100%; }

/* Links (tabela desktop / cards mobile) */
.links{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.links table{ display: none; width: 100%; border-collapse: collapse; font-size: 14px; }
@media (min-width: 768px){ .links table{ display: table; } }
.links thead th{
  text-align: left; padding: 12px 14px;
  background: var(--bg-2); color: var(--muted);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.links tbody td{ padding: 12px 14px; border-bottom: 1px solid var(--border); }
.links tbody tr:last-child td{ border-bottom: 0; }
.links tbody tr:hover{ background: rgba(52,120,246,.04); }

.link-card{
  display: grid; gap: var(--space-2);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px){ .link-card{ display: none; } }
.link-card:last-child{ border-bottom: 0; }
.link-card .code{
  font-family: var(--mono); font-size: 14px; color: var(--primary-2); font-weight: 600;
}
.link-card .orig{ font-size: 13px; color: var(--muted); word-break: break-all; }
.link-card .meta{ display: flex; gap: var(--space-3); font-size: 12px; color: var(--muted-2); flex-wrap: wrap; }
.link-card .actions{ display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.link-card .actions .btn-ghost{ min-height: 36px; padding: 6px 10px; font-size: 12px; }

/* Forms dashboard */
.form-card{ display: grid; gap: var(--space-3); }
.form-row{ display: grid; gap: var(--space-3); }
@media (min-width: 640px){ .form-row{ grid-template-columns: 1fr 1fr; } }

/* Toast */
.toasts{
  position: fixed; bottom: 76px; right: 16px; left: 16px;
  display: grid; gap: 8px; z-index: 200;
  pointer-events: none;
}
@media (min-width: 768px){ .toasts{ left: auto; bottom: 16px; min-width: 280px; } }
.toast{
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  font-size: 14px; pointer-events: auto;
  box-shadow: var(--shadow-sm);
  animation: toastIn .25s var(--ease);
}
.toast.success{ border-color: rgba(34,197,94,.5); }
.toast.error{ border-color: rgba(239,68,68,.5); }
@keyframes toastIn{ from{ transform: translateY(8px); opacity: 0; } to{ transform: translateY(0); opacity: 1; } }

/* Skeletons */
.skel{ background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer{ from{ background-position: 200% 0; } to{ background-position: -200% 0; } }
.skel-line{ height: 12px; margin: 8px 0; }
.skel-title{ height: 22px; width: 60%; margin-bottom: 14px; }

/* Utilities */
.muted{ color: var(--muted); }
.center{ text-align: center; }
.flex{ display: flex; gap: var(--space-3); align-items: center; }
.flex-wrap{ flex-wrap: wrap; }
.right{ margin-left: auto; }
.hidden{ display: none !important; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ============================================================
   AUTH — Login, Registo (mobile-first)
   ============================================================ */

.auth-shell{
  min-height: calc(100vh - var(--topbar-h));
  display: grid;
  place-items: center;
  padding: var(--space-5) var(--space-4) var(--space-7);
}

.auth-card{
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-lg);
}

.auth-head{
  text-align: center;
  margin-bottom: var(--space-5);
}
.auth-head .logo{
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.4px;
  margin-bottom: 4px;
}
.auth-head .logo span{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-head h1{
  font-size: clamp(20px, 5vw, 24px);
  margin: 8px 0 4px;
}
.auth-head p{
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.input-icon{ position: relative; }
.input-icon svg{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--muted-2);
  pointer-events: none;
}
.input-icon input{
  padding-left: 42px;
  padding-right: 42px;
}

.input-toggle{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.input-toggle:hover{ color: var(--text); background: rgba(52,120,246,.08); }
.input-toggle svg{ width: 18px; height: 18px; }

.btn-auth{
  width: 100%;
  margin-top: var(--space-2);
  position: relative;
}
.btn-auth.loading{ pointer-events: none; opacity: .8; }
.btn-auth.loading::after{
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }

.auth-divider{
  display: flex; align-items: center; gap: 10px;
  color: var(--muted-2); font-size: 12px;
  margin: var(--space-4) 0;
}
.auth-divider::before,
.auth-divider::after{
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.auth-alt{
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--space-4);
}

.auth-card .alert{
  margin-bottom: var(--space-4);
  font-size: 13px;
}

@media (max-width: 360px){
  .auth-card{ padding: var(--space-5) var(--space-4); }
}
