/* Access recovery: isolated from the authenticated workspace layout. */
.access-story { isolation: isolate; }
.access-universe { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.universe-bubble { position: absolute; left: var(--left); top: var(--top); width: var(--size); height: var(--size); display: grid; place-items: center; border-radius: 50%; border: 1px solid #9be9f52b; background: radial-gradient(circle at 30% 25%,#94e9fa14,transparent 65%); box-shadow: inset 0 0 28px #69dce80c; color: #c8f6ff55; font-size: 11px; letter-spacing: 1px; animation: bubble-float calc(16s + var(--i)*2s) ease-in-out infinite alternate; animation-delay: calc(var(--i)*-3s); }
.universe-ring { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; border: 1px solid #8bdcf51a; border-radius: 50%; transform: translate(-50%,-50%); animation: universe-depth 24s linear infinite; animation-delay: calc(var(--i)*-8s); }
.access-universe { translate: var(--drift-x,0px) var(--drift-y,0px); transition: translate 1.2s ease-out; }
.access-story-body, .story-masthead, .access-story > small { position: relative; z-index: 1; }
@keyframes bubble-float {
  0% { transform: translate3d(0,var(--travel-y,30px),0) scale(.88); opacity: .5; }
  50% { transform: translate3d(var(--travel-x,20px),0,0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(0,calc(-1 * var(--travel-y,30px)),0) scale(.95); opacity: .65; }
}
.access-page .universe-bubble { animation-duration: calc(8s + var(--i)*.45s); font-size: 11px; font-weight: 600; text-align: center; padding: 8px; box-sizing: border-box; color: #caf7ff99; border-color: #9be9f54d; background: radial-gradient(circle at 30% 25%,#94e9fa26,transparent 70%); }
.access-page .agent-network { display: none; }
@keyframes universe-depth { from { transform: translate(-50%,-50%) scale(.25); opacity: 0; } 35% { opacity: .7; } to { transform: translate(-50%,-50%) scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .universe-bubble,.universe-ring { animation: none; } .access-universe { translate: none; transition: none; } }
[hidden] { display: none !important; }
.access-page {
  position: relative; inset: auto; width: 100%; min-height: 100dvh; height: auto;
  overflow: visible;
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(420px,0.85fr);
  background: #fff; overscroll-behavior-y: contain; scrollbar-gutter: stable;
}
.access-story {
  padding: clamp(28px,4vw,72px); min-width: 0; overflow: hidden;
  background: radial-gradient(ellipse at var(--pointer-x,30%) var(--pointer-y,70%),#087fa3 0%,transparent 60%),linear-gradient(145deg,#073e76,#005a9c 65%,#087f99);
  gap: 24px;
}
.story-masthead { gap: 24px; line-height: 1.6; font-size: 10px; letter-spacing: 1.5px; }
.story-edition { text-align: right; }
.access-story-body { max-width: 760px; margin: auto 0; }
.access-story-body h1 { font-size: clamp(36px,4vw,64px); letter-spacing: -2px; line-height: 1.08; }
.access-story-body h1 span { color: #7de0e8; }
.access-story-body > p { font-size: 16px; line-height: 1.75; max-width: 520px; margin-bottom: 28px; }
.collaboration { background: #04396566; padding: 24px; border-radius: 18px; margin-bottom: 20px; }
.perspective-buttons { flex-wrap: wrap; }
.agent-network { position: relative; right: auto; bottom: auto; width: 100%; max-width: 540px; opacity: .8; margin-top: 22px; }
.agent-network > span { display: block; font-size: 12px; text-align: center; color: #c2e6f0; line-height: 1.6; }
.access-page .access-story { display: flex; flex-direction: column; box-sizing: border-box; }
.access-page .access-story-body { width: 100%; min-width: 0; }
.access-page .agent-network { position: static; box-sizing: border-box; width: 100%; max-width: 540px; margin: 28px 0 0; padding: 8px; }
.access-page .agent-network svg { display: block; width: 100%; height: auto; overflow: visible; }
.access-page .agent-network > span { margin-top: 12px; overflow-wrap: anywhere; }
.access-page .access-entry { box-sizing: border-box; display: flex; flex-direction: column; }
body:has(#loginOverlay:not([hidden])) { height: auto; min-height: 100dvh; overflow-y: auto; overflow-x: hidden; }
@media (min-width: 901px) and (max-height: 850px) {
  .access-page .access-story, .access-page .access-entry { padding: 28px 40px; }
  .access-story-body h1 { font-size: clamp(36px,3.2vw,52px); }
  .access-story-body > p { margin-bottom: 20px; font-size: 14px; }
  .collaboration { padding: 18px; margin-bottom: 12px; }
  .access-page .agent-network { max-width: 420px; margin-top: 16px; }
  .access-form-wrap h2 { font-size: 30px; }
}
.access-story > small { font-size: 11px; color: #c2e6f0; }
.access-entry { width: auto; min-width: 0; padding: 32px clamp(28px,4vw,72px); gap: 28px; background: linear-gradient(150deg,#fff 60%,#f0f8fb); }
.access-brand { align-self: flex-end; margin: 0; gap: 8px; }
.access-brand img { object-fit: contain; width: 190px; height: auto; }
.access-brand span { font-size: 9px; letter-spacing: 1.2px; }
.access-form-wrap { width: 100%; max-width: 430px; align-self: center; flex: none; margin: auto 0; }
.environment-label { background: #e8f5f5; color: #096e79; border-radius: 24px; font-size: 10px; letter-spacing: 1px; padding: 7px 11px; margin-bottom: 18px; }
.access-icon { display: none; }
.access-form-wrap h2 { color: #173447; font-size: clamp(28px,2.7vw,40px); letter-spacing: -1px; margin-bottom: 12px; }
.access-form-wrap > p { color: #627b8e; font-size: 14px; line-height: 1.65; }
.access-form-wrap form { margin-top: 24px; gap: 10px; }
.access-form-wrap label { color: #28485d; font-size: 12px; font-weight: 650; margin-top: 6px; }
.access-form-wrap input { width: 100%; min-width: 0; height: 48px; border: 1px solid #ccdae4; border-radius: 10px; background: #f9fcfe; padding: 12px 14px; font-size: 14px; color: #173447; }
.access-form-wrap input:focus { outline: 3px solid #55c9da44; border-color: #005a9c; }
.password-field { position: relative; gap: 0; }
.password-field input { padding-right: 76px; }
.password-field button { position: absolute; right: 4px; top: 4px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #005a9c; padding: 0 12px; font-size: 12px; font-weight: 650; }
.security-check { margin-top: 6px; min-height: 58px; }
.captcha-widget { margin: 0; max-width: 100%; }
.captcha-status { font-size: 12px; line-height: 1.5; margin: 10px 0; }
#captchaRetry { background: #edf6fa; border: 1px solid #b9d8e6; color: #005a9c; border-radius: 8px; padding: 10px 14px; font: inherit; font-size: 12px; cursor: pointer; }
.access-submit { border-radius: 10px; min-height: 50px; font-size: 13px; background: linear-gradient(110deg,#005a9c,#087e95); padding: 14px 18px; }
.access-submit:disabled { opacity: .5; }
.access-restricted { margin-top: 22px; font-size: 11px !important; }
.institution-link { font-size: 12px; margin-top: 4px; }
.access-copyright { color: #71899a; font-size: 10px; align-self: center; }
@media (max-width: 900px) {
  .access-page { grid-template-columns: minmax(0,1fr); }
  .access-page .access-story { display: none; }
  .access-entry { min-height: 100%; padding: 28px 24px; }
  .access-brand { align-self: center; }
  .access-form-wrap { padding: 16px 0; }
}
@media (max-width: 360px) {
  .access-entry { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .network-signals path { animation: none; }
}
