:root {
  --hub-bg: #f6f7f9;
  --hub-panel: #ffffff;
  --hub-panel-soft: #f8fafc;
  --hub-text: #0b0f17;
  --hub-muted: #667085;
  --hub-border: #e4e7ec;
  --hub-border-strong: #d0d5dd;
  --hub-yellow: #f0b90b;
  --hub-yellow-soft: #fff8db;
  --hub-green: #12b76a;
  --hub-red: #d92d20;
}

body.jackies-auth-page {
  background: var(--hub-bg);
}

[data-auth-gate][hidden],
[data-prototype-content][hidden] {
  display: none !important;
}

[data-prototype-content] {
  display: contents;
}

.jackies-gate {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(360px, 420px);
  gap: clamp(18px, 2.2vw, 28px);
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 56px);
  color: var(--hub-text);
}

.jackies-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 72%);
}

.hub-identity,
.hub-panel {
  position: relative;
  z-index: 1;
}

.hub-identity {
  max-width: 650px;
}

.hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: var(--hub-panel);
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 800;
}

.hub-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hub-yellow);
}

.hub-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.hub-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid #0b0f17;
  border-radius: 8px;
  background: #0b0f17;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
}

.hub-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
}

.hub-subtitle {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--hub-muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
}

.hub-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 34px;
}

.hub-strip-item {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.hub-strip-item strong,
.hub-strip-item span {
  display: block;
}

.hub-strip-item strong {
  color: var(--hub-text);
  font-size: 24px;
  line-height: 1;
}

.hub-strip-item span {
  margin-top: 10px;
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 800;
}

.hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hub-tag {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: var(--hub-panel);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.hub-panel {
  padding: 24px;
  border: 1px solid var(--hub-border-strong);
  border-radius: 8px;
  background: var(--hub-panel);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.hub-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.hub-panel h2 {
  margin: 0;
  color: var(--hub-text);
  font-size: 22px;
  line-height: 1.1;
}

.hub-panel p {
  margin: 8px 0 0;
  color: var(--hub-muted);
  line-height: 1.6;
}

.hub-badge {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--hub-yellow-soft);
  color: #8a5a00;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.hub-field {
  display: grid;
  gap: 8px;
}

.hub-field label {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.hub-password-row {
  display: flex;
  min-height: 46px;
  border: 1px solid var(--hub-border-strong);
  border-radius: 8px;
  background: var(--hub-panel);
  overflow: hidden;
}

.hub-password-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--hub-text);
  font-size: 15px;
}

.hub-password-row:focus-within {
  border-color: #0b0f17;
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.22);
}

.hub-submit {
  width: 118px;
  border: 0;
  border-left: 1px solid var(--hub-border-strong);
  background: var(--hub-yellow);
  color: #0b0f17;
  font-weight: 900;
}

.hub-submit:hover {
  background: #e3ad08;
}

.hub-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--hub-muted);
  font-size: 13px;
  font-weight: 700;
}

.hub-status[data-tone="success"] {
  color: var(--hub-green);
}

.hub-status[data-tone="error"] {
  color: var(--hub-red);
}

.hub-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--hub-border);
}

.hub-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hub-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: var(--hub-panel-soft);
}

.hub-meta dt,
.hub-meta dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.hub-meta dt {
  color: var(--hub-muted);
}

.hub-meta dd {
  color: var(--hub-text);
  text-align: right;
}

.hub-reset {
  width: 100%;
  height: 40px;
  margin-top: 18px;
  border: 1px solid var(--hub-border-strong);
  border-radius: 8px;
  background: var(--hub-panel);
  color: #344054;
  font-weight: 900;
}

.hub-reset:hover {
  background: var(--hub-panel-soft);
}

.prototype-hub-content .brand-mark,
.prototype-hub-content .page-card,
.prototype-hub-content .card-kicker,
.prototype-hub-content .standalone-theme-toggle {
  border-radius: 8px;
}

.prototype-hub-content .page-card {
  box-shadow: none;
}

.prototype-hub-content .page-card:hover {
  border-color: #f0b90b;
}

.prototype-hub-content .brand-title {
  letter-spacing: 0;
}

@media (max-width: 920px) {
  .jackies-gate {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .hub-identity {
    max-width: none;
  }

  .hub-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .jackies-gate {
    padding: 18px;
  }

  .hub-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hub-panel {
    padding: 18px;
  }

  .hub-panel-header {
    display: grid;
  }

  .hub-password-row {
    display: grid;
  }

  .hub-submit {
    width: 100%;
    height: 42px;
    border-top: 1px solid var(--hub-border-strong);
    border-left: 0;
  }
}

:root[data-theme="dark"] {
  --hub-bg: #0b0f17;
  --hub-panel: #101722;
  --hub-panel-soft: #151f2d;
  --hub-text: #f8fafc;
  --hub-muted: #98a2b3;
  --hub-border: #263244;
  --hub-border-strong: #344054;
  --hub-yellow-soft: rgba(240, 185, 11, 0.16);
}

:root[data-theme="dark"] .jackies-gate::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

:root[data-theme="dark"] .hub-mark {
  border-color: #f0b90b;
}

:root[data-theme="dark"] .hub-field label,
:root[data-theme="dark"] .hub-tag,
:root[data-theme="dark"] .hub-reset {
  color: #d0d5dd;
}

:root[data-theme="dark"] .hub-password-row:focus-within {
  border-color: #f0b90b;
}
