/* ═══════════════════════════════════════════════════════════════
   BASE — reset, tipografía, utilidades
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--hint); }
::-webkit-scrollbar-track { background: transparent; }

/* ── Tipografía (ui-audit/typography) ─────────────────────────── */
.h-display   { font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.h-title     { font-size: 20px; font-weight: 800; }
.h-section   { font-size: 16px; font-weight: 700; }
.slabel {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.text-muted  { color: var(--muted); }
.text-muted2 { color: var(--muted2); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 11px; }
.mono        { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; }

/* ── Login gate ───────────────────────────────────────────────── */
.login-gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(10,132,255,.18), transparent),
    radial-gradient(50% 40% at 85% 85%, rgba(90,180,205,.12), transparent),
    var(--bg);
  padding: 20px;
}
.login-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 40px 32px;
  width: 100%; max-width: 380px;
  box-shadow: var(--shadow-modal);
}
.brand-name { font-size: 26px; font-weight: 700; letter-spacing: -.4px; text-align: center; }
.brand-name .muted { color: var(--muted); }
.brand-name .accent { color: var(--forge); }
.brand-name .desktop-tag {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: rgba(10,132,255,.12);
  border: 1px solid rgba(10,132,255,.3); border-radius: 99px; padding: 3px 8px;
}
.login-sub {
  font-size: 13px; font-weight: 600; color: var(--muted); text-align: center;
  margin: 28px 0 20px; letter-spacing: .3px; text-transform: uppercase;
}
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 12px;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 13px; background: #fff; border: none; border-radius: var(--r-md);
  color: #1a1a2e; font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: opacity .15s;
}
.btn-google:hover { opacity: .92; text-decoration: none; }
.btn-block { width: 100%; margin-top: 14px; justify-content: center; }

/* ── Utilidades ───────────────────────────────────────────────── */
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
[hidden] { display: none !important; }

@keyframes sfd-spin { to { transform: rotate(360deg); } }
@keyframes sfd-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sfd-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
