:root { color-scheme: light; }
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--jc-graphite-deep); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  color: var(--jc-ink);
  background:
    linear-gradient(rgba(21, 28, 26, .94), rgba(21, 28, 26, .94)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .035) 79px 80px),
    var(--jc-graphite-deep);
  font-family: var(--jc-font);
}
button, input { font: inherit; }
.beta-shell {
  width: min(100%, 1080px);
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--jc-radius-lg);
  background: var(--jc-mineral-raised);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
}
.brand-panel {
  position: relative;
  min-width: 0;
  padding: 52px;
  display: flex;
  flex-direction: column;
  color: #f8f4eb;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035) 0 25%, transparent 25% 75%, rgba(255, 255, 255, .025) 75%),
    var(--jc-graphite-deep);
  background-size: 88px 88px;
}
.brand-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: var(--jc-signal);
}
.brand-logo { width: min(100%, 315px); height: auto; }
.brand-message { max-width: 520px; margin: auto 0; padding: 64px 0; }
.brand-kicker, .eyebrow {
  margin: 0 0 14px;
  color: var(--jc-signal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.brand-message h2 {
  max-width: 500px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.05em;
}
.brand-message > p:last-child {
  max-width: 470px;
  margin: 26px 0 0;
  color: #c8cfcb;
  font-size: 17px;
  line-height: 1.65;
}
.workflow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5e8e6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.workflow i { width: 28px; height: 1px; display: block; background: rgba(255, 255, 255, .28); }
.access-panel {
  min-width: 0;
  padding: 64px 58px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 5px solid var(--jc-signal);
  background: var(--jc-mineral-raised);
}
.mobile-logo { display: none; }
.access-panel h1 {
  margin: 0;
  color: var(--jc-ink);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.access-intro { margin: 18px 0 0; color: var(--jc-graphite); font-size: 17px; font-weight: 750; line-height: 1.5; }
.product-context { margin: 8px 0 0; color: var(--jc-steel-600); font-size: 14px; line-height: 1.55; }
.form-status { min-height: 20px; margin-top: 20px; }
.error, .loading-message { margin: 0; font-size: 13px; font-weight: 750; line-height: 1.45; }
.error {
  padding: 10px 12px;
  color: #7f2c27;
  border-left: 3px solid var(--jc-critical);
  background: var(--jc-critical-soft);
}
.loading-message { color: var(--jc-steel-600); }
form { margin-top: 4px; }
label { display: block; margin: 0 0 8px; color: var(--jc-ink); font-size: 13px; font-weight: 850; }
input {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--jc-ink);
  border: 1px solid #aaa9a3;
  border-radius: var(--jc-radius-md);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(21, 28, 26, .05);
}
input:hover { border-color: var(--jc-steel-600); }
input:focus {
  border-color: var(--jc-signal-strong);
  outline: 2px solid var(--jc-signal-strong);
  outline-offset: 2px;
  box-shadow: var(--jc-focus);
}
.field-help { margin: 8px 0 0; color: var(--jc-steel-600); font-size: 12px; line-height: 1.45; }
.primary-action {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1a211f;
  border: 1px solid #c66713;
  border-radius: var(--jc-radius-sm);
  background: var(--jc-signal);
  box-shadow: var(--jc-shadow-1);
  font-weight: 900;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}
.primary-action:hover:not(:disabled) { color: #fff; background: var(--jc-signal-strong); }
.primary-action:active:not(:disabled) { transform: translateY(1px); }
.primary-action:disabled { cursor: wait; opacity: .72; }
.button-spinner {
  width: 16px;
  height: 16px;
  display: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: beta-spin .65s linear infinite;
}
form[aria-busy="true"] .button-spinner { display: block; }
.preview-note {
  margin-top: 24px;
  padding: 13px 14px;
  display: flex;
  gap: 10px;
  color: var(--jc-steel-600);
  border: 1px solid #d7d1c7;
  border-radius: var(--jc-radius-md);
  background: var(--jc-mineral-subtle);
}
.note-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--jc-success);
  font-size: 11px;
  font-weight: 900;
}
.preview-note p { margin: 0; font-size: 11px; line-height: 1.5; }
.preview-note strong { color: var(--jc-graphite); font-size: 12px; }
footer {
  margin-top: auto;
  padding-top: 24px;
  color: var(--jc-steel-600);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
@keyframes beta-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  body { padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .beta-shell { width: min(100%, 560px); min-height: 0; display: block; }
  .brand-panel { display: none; }
  .access-panel { min-height: min(720px, calc(100dvh - 40px)); padding: 40px 44px 30px; }
  .mobile-logo { width: min(100%, 250px); height: auto; display: block; margin-bottom: auto; padding-bottom: 44px; }
}
@media (max-width: 480px) {
  body {
    place-items: stretch;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .beta-shell { width: 100%; min-height: calc(100vh - 16px); min-height: calc(100dvh - 16px); }
  .access-panel { min-height: calc(100vh - 16px); min-height: calc(100dvh - 16px); padding: 30px 24px 24px; }
  .mobile-logo { width: 210px; padding-bottom: 32px; }
  .access-panel h1 { font-size: clamp(34px, 11vw, 42px); }
  .product-context { font-size: 13px; }
}
@media (max-height: 700px) and (min-width: 821px) {
  .beta-shell { min-height: 580px; }
  .brand-panel { padding: 38px 46px; }
  .brand-message { padding: 36px 0; }
  .access-panel { padding-top: 38px; padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
