:root {
  --bg: #050706;
  --surface: rgba(12, 18, 16, 0.88);
  --surface-strong: #0a100e;
  --input-bg: #060908;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(226, 185, 99, 0.36);
  --text: #f3f5f4;
  --muted: #8fa39b;
  --dim: #5c7068;
  --gold: #e2b963;
  --gold-hi: #eed188;
  --gold-lo: #b88c38;
  --emerald: #3ce6b5;
  --danger: #ff857a;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body.vault-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.vault-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #0d1714 0%, #050706 62%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.glow-gold {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: rgba(226, 185, 99, 0.11);
}
.glow-emerald {
  width: 520px; height: 520px;
  bottom: -200px; left: -140px;
  background: rgba(60, 230, 181, 0.07);
}

.vault-frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 36px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-mark { display: flex; align-items: center; gap: 12px; }

.brand-emblem {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-hi), var(--gold-lo));
  color: #140f05;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
}

.brand-sep { width: 1px; height: 14px; background: var(--border); }

.brand-owner {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

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

.node-pill, .clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(60, 230, 181, 0.7);
}

.vault-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 420px);
  align-items: center;
  gap: 72px;
  margin: auto 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.core-showcase h1 {
  margin: 0 0 20px;
  font-size: clamp(44px, 4.9vw, 68px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.core-showcase h1 span {
  background: linear-gradient(120deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 42px;
  max-width: 640px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.pillar { display: grid; gap: 6px; align-content: start; }
.pillar-idx { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold); }
.pillar strong { font-size: 15.5px; font-weight: 600; color: var(--text); }
.pillar small { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.vault-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-gold);
  border-radius: 22px;
  padding: 32px 30px 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 22px;
}

.vault-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(226, 185, 99, 0.1);
  border: 1px solid rgba(226, 185, 99, 0.28);
}

.vault-card-top h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vault-card-top p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.vault-form { display: grid; gap: 15px; }
.vault-form label { display: grid; gap: 7px; }
.vault-form label > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.vault-form input {
  width: 100%;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.vault-form input::placeholder { color: var(--dim); }
.vault-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226, 185, 99, 0.14);
}

.pass-wrap { position: relative; display: flex; align-items: center; }
.pass-wrap input { padding-right: 72px; }

.eye-btn {
  position: absolute;
  right: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.eye-btn:hover { color: var(--text); border-color: var(--border-gold); }

.totp-field {
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 18px !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.submit-btn {
  margin-top: 6px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo));
  color: #140f05;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(226, 185, 99, 0.18);
  transition: transform .12s, filter .15s;
}
.submit-btn:hover { filter: brightness(1.06); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }

#login-error {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}

.vault-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.bottom-bar strong { color: var(--muted); }

@media (max-width: 960px) {
  .vault-frame { padding: 20px; }
  .vault-shell { grid-template-columns: 1fr; gap: 30px; }
  .pillars { grid-template-columns: 1fr; gap: 14px; }
  .brand-sep, .brand-owner { display: none; }
}

.vault-form input:-webkit-autofill,
.vault-form input:-webkit-autofill:hover,
.vault-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
