/* The ARIUVO identity chooser and the four public login pages. */
html:has(.entry-shell:not([hidden])) { zoom: 1; }
body:has(.entry-shell:not([hidden])),
body[data-page]:has(.entry-shell:not([hidden])) {
  margin: 0;
  min-height: 100dvh;
  background: #faf8f3;
}
body.student-ui:has(.entry-shell:not([hidden])) { background: #faf8f3 !important; }
body.student-ui:has(.entry-shell:not([hidden]))::after { display: none; }
body:has(.entry-shell:not([hidden])) :is(.student-top, .student-sticky, #student-entry, .pt-top, .sidebar, .session-controls),
body:has(.entry-shell:not([hidden])) :is(.student-shell, .teacher-main) > footer {
  display: none;
}
body:has(.entry-shell:not([hidden])) .teacher-main,
body.student-ui:has(#entry-form-layout:not([hidden])) .student-shell,
body[data-page]:has(.entry-shell:not([hidden])) .pt-main,
body.teacher-simple[data-mode=teacher]:has(.entry-shell:not([hidden])) > .teacher-main {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body:has(.entry-shell:not([hidden])) :is(#learning-status, #status):not([hidden]) {
  position: fixed;
  z-index: 10;
  inset: 4.8rem auto auto 50%;
  transform: translateX(-50%);
  width: min(38rem, calc(100% - 2rem));
  margin: 0;
  box-shadow: 0 8px 26px #15275d21;
}
.entry-shell[hidden] { display: none !important; }
.entry-shell {
  --entry-ink: #14265a;
  --entry-muted: #465477;
  --entry-paper: #faf8f3;
  --entry-white: #fffdfa;
  --entry-outline: #b9c5e3;
  --entry-yellow: #ffd05b;
  --entry-width: 1410px;
  min-height: 100dvh;
  color: var(--entry-ink);
  background: var(--entry-paper);
  font: 16px/1.5 "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
.entry-shell *, .entry-shell *::before, .entry-shell *::after { box-sizing: border-box; }
.entry-shell :is(a, button, input, summary):focus-visible {
  outline: 3px solid #425da5;
  outline-offset: 3px;
}
.entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px max(28px, calc((100% - var(--entry-width)) / 2 + 28px));
  border-bottom: 1px solid #e2e2ec;
  gap: 16px;
}
.entry-top .entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--entry-ink);
  text-decoration: none;
  white-space: nowrap;
  min-height: 0;
  padding: 0;
}
.entry-brand-icon { display: block; width: 48px; height: 48px; color: #253c7a; }
.entry-brand b {
  border-left: 1px solid var(--entry-outline);
  padding-left: 16px;
  font: 800 clamp(25px, 3.3vw, 40px)/1 Arial, sans-serif;
  letter-spacing: .01em;
}
.entry-brand span { color: var(--entry-ink); font-weight: 650; }
.entry-shell .entry-top .entry-help { position: relative; margin: 0; z-index: 2; }
.entry-top .entry-help > summary {
  display: block;
  padding: 8px 18px;
  min-height: 42px;
  border: 1px solid #788ab8;
  border-radius: 999px;
  color: var(--entry-ink);
  background: var(--entry-white);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.entry-top .entry-help > summary::-webkit-details-marker { display: none; }
.entry-help-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--entry-outline);
  border-radius: 14px;
  background: var(--entry-white);
  box-shadow: 0 12px 28px #14265a1a;
}
.entry-help-popover p { margin: 0; }
.entry-help-popover p + p { margin-top: 8px; }
.entry-layout {
  max-width: var(--entry-width);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 72px) 28px 40px;
  display: grid;
  align-items: start;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(26px, 3.4vw, 52px);
}
.entry-intro, .entry-content { min-width: 0; }
.entry-intro, [data-entry-role=chooser] .entry-content { padding-top: clamp(25px, 4.1vw, 60px); }
.entry-slogan {
  margin: 0 0 16px;
  font-weight: 850;
  font-size: clamp(32px, 4.35vw, 66px);
  line-height: 1.24;
  letter-spacing: .018em;
}
.entry-slogan span, .entry-panel h1 span {
  box-decoration-break: clone;
  background: linear-gradient(transparent 70%, var(--entry-yellow) 70%, var(--entry-yellow) 96%, transparent 96%);
}
.entry-intro-copy {
  color: var(--entry-muted);
  margin: 0 0 28px;
  font-size: clamp(18px, 2vw, 28px);
}
.entry-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  object-fit: cover;
  object-position: center;
  border-radius: clamp(22px, 3.1vw, 46px);
}
.entry-content h1 {
  margin: 0 0 8px;
  color: var(--entry-ink);
  font-size: clamp(30px, 3.75vw, 56px);
  font-weight: 820;
  letter-spacing: .015em;
  line-height: 1.2;
}
.entry-description {
  margin: 0 0 26px;
  color: var(--entry-muted);
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.5;
}
.entry-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.35vw, 20px);
}
.entry-role-card {
  display: grid;
  grid-template: auto auto auto / minmax(0, 1fr) 20px;
  align-content: center;
  gap: 3px 6px;
  min-height: clamp(144px, 15vw, 220px);
  padding: clamp(15px, 2.2vw, 32px);
  color: var(--entry-ink);
  border: 1px solid var(--entry-outline);
  border-radius: 24px;
  background: #fffefc;
  text-decoration: none;
}
.entry-role-card[data-entry-choice=student] {
  background: #fff3cc;
  border-color: #d69e25;
}
.entry-role-card:is(:hover, :focus-visible) { border-color: #536baf; box-shadow: 0 4px 14px #14265a15; }
.entry-role-card .entry-icon {
  grid-column: 1 / -1;
  width: clamp(34px, 4.2vw, 64px);
  height: clamp(34px, 4.2vw, 64px);
  color: #253c7a;
  margin-bottom: 7px;
}
.entry-role-card b { grid-column: 1; font-size: clamp(21px, 2.8vw, 40px); line-height: 1.25; }
.entry-role-card small { grid-column: 1 / -1; color: var(--entry-muted); font-size: clamp(14px, 1.42vw, 20px); }
.entry-role-arrow { grid-column: 2; grid-row: 2; align-self: center; }
.entry-footer {
  max-width: calc(var(--entry-width) - 56px);
  margin: 0 28px;
  margin-inline: max(28px, calc((100% - var(--entry-width)) / 2 + 28px));
  padding: 18px 0 20px;
  border-top: 1px solid #e2e2ec;
  color: var(--entry-muted);
  text-align: center;
}
.entry-content .entry-back {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--entry-ink);
  text-decoration: none;
  padding: 5px 0;
  margin: 0 0 20px;
  font-size: clamp(16px, 1.7vw, 23px);
}
.entry-back:hover { text-decoration: underline; }
.entry-panel {
  border: 1px solid var(--entry-outline);
  border-radius: 28px;
  background: var(--entry-white);
  padding: clamp(20px, 3.5vw, 46px);
}
.entry-panel form {
  display: flex;
  flex-direction: column;
  margin: 0;
  gap: 0;
}
.entry-shell .entry-field-label { margin: 0 0 7px; font-size: clamp(16px, 1.7vw, 24px); font-weight: 700; }
.entry-field {
  position: relative;
  margin: 0 0 clamp(15px, 2vw, 24px);
}
.entry-field > .entry-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 25px;
  height: 25px;
  transform: translateY(-50%);
  color: var(--entry-ink);
  pointer-events: none;
}
.entry-shell .entry-panel .entry-field input {
  display: block;
  min-width: 0;
  width: 100%;
  height: clamp(52px, 5vw, 70px);
  margin: 0;
  padding: 0 48px;
  border: 1px solid #aebae4;
  border-radius: 14px;
  background: #f0f1fb;
  color: var(--entry-ink);
  font: inherit;
  font-size: clamp(16px, 1.65vw, 23px);
  box-shadow: none;
}
.entry-panel .entry-field input::placeholder { color: #566182; opacity: 1; }
.entry-panel button.entry-eye {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  min-height: 0;
  margin: 0;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  color: var(--entry-ink);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.entry-eye svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.entry-panel .entry-remember { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--entry-muted); font-size: 15px; }
.entry-shell .entry-panel .entry-remember input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: #253c7a; }
.entry-panel button.entry-submit {
  width: 100%;
  min-height: clamp(52px, 5.7vw, 74px);
  margin: 5px 0 14px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--entry-yellow);
  color: var(--entry-ink);
  font: inherit;
  font-size: clamp(18px, 2.1vw, 29px);
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
}
.entry-panel button.entry-submit:hover { background: #ffca43; }
.entry-panel button.entry-submit:disabled { opacity: .65; cursor: wait; }
.entry-form-help {
  color: var(--entry-muted);
  text-align: center;
  font-size: clamp(14px, 1.35vw, 19px);
  margin: 0;
}
@media (max-width: 760px) {
  .entry-top { min-height: 64px; padding: 10px 16px; gap: 8px; }
  .entry-top .entry-brand { gap: 8px; }
  .entry-brand-icon { width: 34px; height: 34px; }
  .entry-brand b { padding-left: 8px; }
  .entry-brand span { display: none; }
  .entry-top .entry-help > summary { font-size: 14px; padding: 8px 12px; }
  .entry-layout { grid-template-columns: 1fr; align-items: start; padding: 24px 16px; gap: 20px; }
  .entry-content { grid-row: 1; }
  .entry-intro, [data-entry-role=chooser] .entry-content { padding-top: 0; }
  .entry-intro-copy { margin-bottom: 14px; }
  .entry-illustration { aspect-ratio: 1.85; }
  .entry-role-card { min-height: 132px; border-radius: 17px; }
  .entry-panel { border-radius: 22px; }
  .entry-content .entry-back { margin-bottom: 12px; }
  .entry-footer { margin-inline: 16px; }
}


@media (min-width: 761px) and (max-height: 820px) {
  .entry-layout { padding-top: 30px; padding-bottom: 25px; }
  .entry-panel { padding: 25px 32px; }
  .entry-intro, [data-entry-role=chooser] .entry-content { padding-top: 24px; }
  .entry-description { margin-bottom: 16px; }
  .entry-field { margin-bottom: 16px; }
  .entry-panel button.entry-submit { min-height: 56px; }
  .entry-content .entry-back { margin-bottom: 12px; }
}
