:root {
  color-scheme: light;
  --blue: #1769ff;
  --blue-deep: #0e42a8;
  --ink: #111827;
  --body: #3f4a5f;
  --muted: #6f7b91;
  --line: #d9e2f1;
  --soft: #f3f7fd;
  --white: #ffffff;
  --danger: #b42318;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: #eef3fb;
}

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.access-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100dvh - 40px);
  margin: 20px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  overflow: hidden;
  border: 1px solid #d4deed;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(35, 69, 120, .14);
}

.access-context {
  min-height: 650px;
  padding: 48px 54px 38px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  background: #123566;
  position: relative;
  isolation: isolate;
}

.access-context::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 58%;
  height: 42%;
  border-top: 1px solid rgba(255,255,255,.13);
  border-left: 1px solid rgba(255,255,255,.13);
  border-radius: 80px 0 0 0;
  z-index: -1;
}

.access-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.access-brand span {
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .08em;
}

.access-brand strong {
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.36);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.78);
}

.context-copy { margin-top: 110px; }

.context-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #a9c8ff;
}

.context-copy h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.14;
  letter-spacing: -.04em;
}

.context-copy > p:last-child {
  max-width: 570px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.72);
}

.context-facts {
  margin: auto 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.context-facts div { padding: 20px 16px 20px 0; }
.context-facts div + div { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18); }
.context-facts dt { font-size: 12px; color: rgba(255,255,255,.55); }
.context-facts dd { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.context-foot { margin: 24px 0 0; font-size: 12px; color: rgba(255,255,255,.48); }

.access-panel {
  padding: 52px 62px;
  display: flex;
  align-items: center;
  background: #ffffff;
}

.panel-inner { width: 100%; max-width: 440px; margin: 0 auto; }

.panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-mark { width: 5px; height: 44px; border-radius: 4px; background: var(--blue); }
.panel-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.panel-heading p { margin: 5px 0 0; font-size: 14px; color: var(--muted); }

.access-tabs {
  margin-top: 34px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.access-tab {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.access-tab.active {
  color: var(--blue-deep);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(25, 67, 130, .1);
}

.access-tab:focus-visible,
.primary-action:focus-visible,
.text-action:focus-visible,
.password-toggle:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(23,105,255,.22);
  outline-offset: 2px;
}

.tab-panel { padding-top: 26px; }

.role-explain {
  margin-bottom: 24px;
  padding: 15px 17px;
  display: grid;
  gap: 5px;
  border-left: 3px solid #8db7ff;
  background: var(--soft);
}

.role-explain strong { font-size: 14px; }
.role-explain span { font-size: 13px; line-height: 1.55; color: var(--body); }

form { display: grid; gap: 18px; }

.field-group { display: grid; gap: 8px; }
.field-group > span:first-child { font-size: 13px; font-weight: 700; color: #303a4d; }

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd6e6;
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
}

input:hover { border-color: #9eb3d0; }
input:focus { border-color: var(--blue); }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 64px; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 48px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  color: var(--blue-deep);
  background: var(--soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.primary-action {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 10px;
  color: #ffffff;
  background: var(--blue);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.primary-action:hover { background: #0f5be5; }
.primary-action:active { transform: translateY(1px); }
.primary-action:disabled { cursor: wait; opacity: .62; }

.form-error {
  margin: -6px 0 0;
  padding: 10px 12px;
  border: 1px solid #f1b7b2;
  border-radius: 8px;
  color: var(--danger);
  background: #fff4f2;
  font-size: 13px;
  line-height: 1.45;
}

.access-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.access-note strong { font-size: 12px; color: #404b5e; }
.access-note p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

.session-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #b9d1f7;
  border-radius: var(--radius);
  background: var(--soft);
}

.session-card h3 { margin: 12px 0 6px; font-size: 21px; }
.session-card p { margin: 0 0 20px; color: var(--body); font-size: 14px; line-height: 1.6; }
.session-state { font-size: 12px; font-weight: 800; color: var(--blue-deep); }

.text-action {
  width: 100%;
  margin-top: 10px;
  border: 0;
  color: var(--blue-deep);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .access-shell { grid-template-columns: 1fr; width: min(680px, calc(100% - 28px)); }
  .access-context { min-height: auto; padding: 34px 32px; }
  .context-copy { margin-top: 60px; }
  .context-copy h1 { font-size: 36px; }
  .context-facts { margin-top: 56px; }
  .access-panel { padding: 42px 32px 48px; }
}

@media (max-width: 560px) {
  .access-shell { width: 100%; min-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .access-context { padding: 26px 22px 28px; }
  .access-brand strong { display: none; }
  .context-copy { margin-top: 42px; }
  .context-copy h1 { font-size: 31px; line-height: 1.18; }
  .context-copy > p:last-child { font-size: 14px; }
  .context-facts { grid-template-columns: 1fr; margin-top: 38px; }
  .context-facts div, .context-facts div + div { padding: 13px 0; border-left: 0; }
  .context-facts div + div { border-top: 1px solid rgba(255,255,255,.14); }
  .context-foot { margin-top: 18px; }
  .access-panel { padding: 34px 22px 42px; }
  .panel-heading h2 { font-size: 24px; }
  .access-tabs { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
