:root {
  color-scheme: dark;
  --ink: #effffb;
  --muted: #9ab6b1;
  --deep: #061315;
  --panel: #0c2022;
  --panel-soft: #10292a;
  --line: rgba(143, 255, 221, 0.17);
  --mint: #79f2ca;
  --mint-strong: #32d9ad;
  --danger: #ff9b91;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  font-family: "Aptos Display", "Segoe UI Variable", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(50, 217, 173, 0.14), transparent 32rem),
    radial-gradient(circle at 88% 82%, rgba(58, 148, 143, 0.12), transparent 28rem),
    linear-gradient(145deg, #02090a 0%, var(--deep) 45%, #07191a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: linear-gradient(rgba(121, 242, 202, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(121, 242, 202, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom right, black, transparent 70%);
}

.access-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  min-height: min(720px, calc(100vh - 64px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(7, 24, 25, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.brand-panel, .entry-panel { padding: clamp(32px, 6vw, 76px); }

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(121, 242, 202, 0.13), transparent 56%),
    linear-gradient(180deg, rgba(8, 35, 35, 0.68), rgba(4, 18, 19, 0.88));
  border-right: 1px solid var(--line);
}

.brand-mark { display: flex; align-items: end; gap: 7px; height: 54px; margin-bottom: 42px; }
.brand-mark span { width: 10px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 28px rgba(121, 242, 202, 0.34); }
.brand-mark span:nth-child(1) { height: 26px; }
.brand-mark span:nth-child(2) { height: 51px; }
.brand-mark span:nth-child(3) { height: 36px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 630px; margin-bottom: 24px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 0.98; letter-spacing: -0.055em; }
h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; letter-spacing: -0.045em; }
h3 { margin-bottom: 10px; font-size: 1.35rem; }
.brand-copy, .entry-heading > p, .special-panel > p { color: var(--muted); line-height: 1.65; }
.brand-copy { max-width: 560px; font-size: 1.08rem; }

.trust-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 500px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust-note__signal { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 5px; border: 3px solid var(--deep); border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--mint); }
.trust-note p { margin: 5px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.entry-panel { align-self: center; }
.entry-heading { margin-bottom: 30px; }
.entry-heading > p { margin-bottom: 0; }

.access-form { display: grid; gap: 18px; }
.access-form--compact { gap: 14px; margin-top: 18px; }
label { display: grid; gap: 8px; color: #cce2dd; font-size: 0.88rem; font-weight: 650; }
label small { color: var(--muted); font-weight: 500; }
input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(190, 255, 236, 0.18);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(4, 17, 18, 0.82);
  font: inherit;
  outline: none;
}
input:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 4px rgba(50, 217, 173, 0.12); }

.button {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  color: #032019;
  background: linear-gradient(135deg, var(--mint), var(--mint-strong));
  font: 750 0.98rem/1 inherit;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(50, 217, 173, 0.15);
}
.button:hover { filter: brightness(1.06); }
.button:focus-visible { outline: 3px solid rgba(121, 242, 202, 0.45); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: 0.62; }
.button--secondary { color: var(--ink); background: var(--panel-soft); border: 1px solid var(--line); box-shadow: none; }

.alternate-entry, .special-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13, 37, 38, 0.64); }
.alternate-entry { padding: 0 18px 18px; }
.alternate-entry summary { min-height: 56px; display: flex; align-items: center; color: #d5ece7; font-weight: 700; cursor: pointer; }
.alternate-entry summary::marker { color: var(--mint); }
.special-panel { padding: 22px; }
.special-panel--setup { border-color: rgba(121, 242, 202, 0.34); }

.message { margin-bottom: 20px; padding: 13px 15px; border: 1px solid rgba(121, 242, 202, 0.3); border-radius: 13px; color: #d9fff4; background: rgba(50, 217, 173, 0.09); line-height: 1.45; }
.message.is-error { border-color: rgba(255, 155, 145, 0.34); color: #ffd6d1; background: rgba(255, 97, 85, 0.09); }
.sso-options { display: grid; gap: 10px; margin-top: 14px; }
.sso-company { margin: 0 0 2px; color: var(--muted); font-size: 0.9rem; }
.entry-footer { margin: 28px 0 0; color: var(--muted); text-align: center; font-size: 0.82rem; }

@media (max-width: 820px) {
  .access-shell { grid-template-columns: 1fr; width: min(620px, calc(100% - 24px)); margin: 12px auto; border-radius: 22px; }
  .brand-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-mark { margin-bottom: 24px; }
  h1 { font-size: clamp(2.3rem, 11vw, 4rem); }
  .trust-note { margin-top: 34px; }
}

@media (max-width: 520px) {
  .brand-panel, .entry-panel { padding: 28px 22px; }
  .brand-panel { min-height: 420px; }
  input, .button { min-height: 58px; }
}

@media (prefers-reduced-motion: no-preference) {
  .access-shell { animation: arrive 500ms ease-out both; }
  .entry-panel > * { animation: rise 420ms ease-out both; }
  .entry-panel > :nth-child(2) { animation-delay: 70ms; }
  .entry-panel > :nth-child(3) { animation-delay: 110ms; }
  @keyframes arrive { from { opacity: 0; transform: translateY(12px) scale(0.995); } }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
