/* A focused entry to the Molaris learning workspace. */
.auth-page{background:#faf9f6;color:#241b35}
.auth-page>header{min-height:80px;padding:18px max(4vw,24px);background:#faf9f6;border:0}
.auth-page>header .brand{font-size:31px;font-weight:900;letter-spacing:-1.8px;color:#4f2d9a}
.auth-page>header nav{font-size:13px}
.auth-page>header nav a{text-decoration:none;color:#61586c}
.portal-external-icon{display:inline-block;vertical-align:-1px;margin-left:3px}
.auth-page>header nav a:hover{color:#6440c4;text-decoration:underline}
.auth-page>header nav .portal-header-progress{display:none}
.auth-page #main{max-width:1260px;padding:12px 32px 40px}
.auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:720px;border:1px solid #e8e4ef;border-radius:28px;background:#fff;overflow:hidden;box-shadow:0 20px 55px #30214206}
.auth-story{position:relative;isolation:isolate;display:flex;flex-direction:column;overflow:hidden;padding:52px 48px 36px;background:#302044;color:#fff}
.auth-story:after{content:"";position:absolute;z-index:-1;width:600px;height:600px;right:-230px;bottom:-130px;border-radius:50%;background:radial-gradient(ellipse,#7956ba60,transparent 68%);pointer-events:none}
.auth-story-kicker{margin:0 0 30px;color:#f1cd58;font-size:10px;letter-spacing:.2em;font-weight:800}
.auth-story h2{margin:0;font-size:clamp(36px,4.8vw,61px);line-height:1.075;letter-spacing:-.055em;font-weight:600}
.auth-story h2 em{color:#d2bce9;font-style:normal}
.auth-story>p:not(.auth-story-kicker){max-width:30ch;margin:22px 0 0;color:#d0c6da;font-size:15px;line-height:1.75}
.auth-story-foot{margin-top:auto;position:relative;font-size:9px;font-weight:750;letter-spacing:.15em;color:#b6a8c7}
.auth-story-foot>span{display:block;margin-top:6px}
.auth-story-foot p{margin:19px 0 0;letter-spacing:0;font-size:12px;font-weight:400;color:#c2b7ce}
.auth-orbit{height:230px;position:relative;flex:1;min-height:190px;max-height:290px;margin-top:4px}
.auth-orbit-ring{position:absolute;left:50%;top:50%;width:280px;height:115px;border:1px solid #c6a6e463;border-radius:50%;transform:translate(-50%,-50%) rotate(-32deg)}
.auth-orbit-ring:nth-child(2){transform:translate(-50%,-50%) rotate(32deg);border-color:#c6a6e433}
.auth-orbit-core{position:absolute;left:50%;top:50%;display:grid;place-items:center;transform:translate(-50%,-50%);width:88px;height:88px;background:#ffffff09;border:1px solid #d4b6f135;border-radius:50%;font-size:36px;font-weight:900;letter-spacing:-3px;color:#e1cbf8;box-shadow:0 0 0 22px #ffffff05}
.auth-orbit-symbol{position:absolute;display:grid;place-items:center;border-radius:15px;width:43px;height:43px;font-size:25px;line-height:1;background:#61447f;border:1px solid #b699d16b;box-shadow:0 4px 15px #1508251c}
.auth-orbit-pi{left:14%;top:25%;transform:rotate(-9deg);color:#f3d671}
.auth-orbit-atom{right:10%;top:27%;transform:rotate(12deg);color:#e7dbf1;background:#47305f}
.auth-orbit-plus{right:26%;bottom:12%;width:30px;height:30px;border-radius:10px;background:#f1cd58;color:#36213f;font-size:23px;transform:rotate(-8deg)}
.auth-panel{align-self:center;padding:48px clamp(28px,4.8vw,70px)}
.auth-panel-intro .eyebrow{margin:0 0 15px;font-size:10px;letter-spacing:.18em;color:#816e9c}
.auth-panel h1{font-size:clamp(27px,3vw,36px);line-height:1.16;letter-spacing:-.045em;margin:0 0 12px;font-weight:650}
.auth-panel-intro>p:last-child{color:#756c80;font-size:14px;line-height:1.65;margin:0 0 25px}
.auth-role-switch{display:grid;grid-template-columns:1fr 1fr;padding:4px;margin:22px 0 25px;background:#f4f2f7;border:1px solid #efebf3;border-radius:12px}
.auth-role-switch .auth-role-button{min-height:39px;padding:9px 16px;font-size:13px;font-weight:650;border-radius:8px;background:transparent;color:#84788e;box-shadow:none;transition:background .15s,color .15s}
.auth-role-switch .auth-role-button[aria-pressed="true"]{background:#fff;color:#4f2d99;box-shadow:0 2px 7px #3c235b10}
.auth-panel form>label,.auth-password-label label{display:block;font-size:12px;font-weight:650;margin:19px 0 7px;color:#463a55}
.auth-panel input{height:47px;margin:0;padding:12px 14px;background:#fff;border:1px solid #ddd6e5;border-radius:9px;font-size:14px;color:#241b35;box-shadow:0 1px 2px #2b173803;transition:border-color .15s,box-shadow .15s}
.auth-panel input::placeholder{color:#a095aa;font-size:13px}
.auth-panel input:focus{border-color:#8a68c8;box-shadow:0 0 0 3px #6440c40d;outline:0}
.auth-password-label{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.auth-password-label .plain{padding:0;font-size:11px;font-weight:600;color:#7351ad}
.auth-password-wrap{position:relative}
.auth-password-wrap input{padding-right:65px}
.auth-password-toggle{position:absolute;right:5px;top:4px;bottom:4px;padding:6px 10px;font-size:11px;font-weight:650;color:#76618e;background:transparent;border-radius:6px}
.auth-password-toggle:hover{background:#f5f1fa}
.auth-password-help{margin:8px 0 0;font-size:11px;line-height:1.6;color:#8a7d96}
.auth-panel .auth-submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:47px;margin-top:24px;padding:12px 18px;border-radius:9px;background:#6440c4;color:#fff;font-size:13px;font-weight:650;box-shadow:0 3px 7px #6440c41a;transition:background .15s,transform .15s}
.auth-panel .auth-submit:hover{background:#5332ad;transform:translateY(-1px)}
.auth-panel .auth-submit:disabled{transform:none}
.auth-submit span{font-size:18px;font-weight:400;line-height:1}
.auth-mode-switch{display:flex;align-items:center;justify-content:center;gap:3px;margin-top:22px;font-size:12px;color:#8a7d96;flex-wrap:wrap}
.auth-mode-switch .plain{padding:4px;font-size:12px;font-weight:650;color:#6440c4}
.auth-teacher-route{text-align:center;font-size:11px;margin:9px 0}
.auth-teacher-route a{color:#847391;text-decoration:none}
.auth-teacher-route a:hover{text-decoration:underline}
.auth-legal{font-size:10px;line-height:1.7;margin:30px 0 0;text-align:center;color:#9a8ea4}
.auth-legal a{color:#81718f;text-underline-offset:3px}
.auth-teacher-note{padding:12px 14px;margin:17px 0 0;border:1px solid #ebe3f3;border-radius:9px;background:#faf7fd;color:#84718f;font-size:11px;line-height:1.7}
.auth-teacher-note strong{display:block;color:#645075;font-weight:650;margin-bottom:2px}
.auth-panel .notice{padding:12px 14px;font-size:12px;border-left-width:3px;margin:12px 0 20px}
.auth-panel .error{font-size:12px;line-height:1.6;margin:13px 0 0;color:#b03551}
.auth-success{padding:13px 15px;border-radius:9px;background:#eff6f0;border:1px solid #dce9df;color:#3e7051;font-size:12px;line-height:1.7;margin-top:16px}
.auth-panel .error:empty,.auth-success:empty{display:none}
.auth-provider-choices{display:grid;gap:10px;margin-bottom:15px}
.auth-provider-choices button,.auth-provider-choices .button{font-size:12px;text-align:center;border:1px solid #e5dfea;background:#fff;color:#51415e}
.auth-divider{display:flex;align-items:center;gap:12px;font-size:10px;color:#9a8ea4;margin:5px 0}
.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#ede8f2}
.auth-alternative{font-size:11px;text-align:center;margin-top:20px}
.auth-unavailable{max-width:650px;margin:80px auto;padding:44px;border:1px solid #e8e4ef;border-radius:22px;background:#fff}
.auth-unavailable h1{font-size:38px}
.auth-page>footer{font-size:10px;color:#a297ad;padding:0 20px 25px}
.portal-loading{display:grid;place-items:center;min-height:52vh;text-align:center;color:#83748f;font-size:13px}
.portal-loading-mark{display:block;margin:0 auto 16px;width:48px;height:48px;border:1px solid #dfd4ed;border-radius:16px;background:#f4edf9;color:#6440c4;font-weight:900;font-size:23px;line-height:48px;letter-spacing:-2px}
@media(min-width:1350px){.auth-layout{min-height:735px}.auth-story{padding:56px}.auth-panel{padding-inline:76px}}
@media(max-width:900px){.auth-page #main{padding:10px 24px 32px}.auth-layout{min-height:680px;grid-template-columns:.9fr 1fr}.auth-story{padding:38px 30px}.auth-story h2{font-size:43px}.auth-story>p:not(.auth-story-kicker){font-size:13px}.auth-panel{padding:38px 30px}.auth-orbit-ring{width:230px}.auth-orbit-pi{left:2%}.auth-orbit-atom{right:0}}
@media(max-width:680px){.auth-page>header{min-height:68px;padding:16px 22px;flex-direction:row;align-items:center}.auth-page>header .brand{font-size:28px}.auth-page>header nav{font-size:11px}.auth-page #main{padding:8px 18px 28px;max-width:500px}.auth-layout{display:block;min-height:0;border-radius:20px}.auth-story{display:none}.auth-panel{padding:34px 25px 28px}.auth-panel h1{font-size:29px}.auth-panel-intro>p:last-child{font-size:13px}.auth-role-switch{margin-block:22px}.auth-legal{margin-top:24px}.auth-page>footer{max-width:390px;margin:auto;line-height:1.7}.auth-unavailable{margin:24px 0;padding:28px}.auth-unavailable h1{font-size:31px}}
@media(prefers-reduced-motion:reduce){.auth-panel input,.auth-role-switch .auth-role-button,.auth-panel .auth-submit{transition:none}.auth-panel .auth-submit:hover{transform:none}}

/* The public library stays one link away from the sign-in form. */
.portal-library {
  justify-content: center;
  background: linear-gradient(130deg,rgba(38,21,63,.96) 18%,rgba(52,29,84,.87)),
              url('/platform/stem-studio-orbit.webp') center / cover;
}
.portal-library .auth-story-kicker { margin-bottom: 22px; }
.portal-library > p:not(.auth-story-kicker) { color: #eee7f6; max-width: 40ch; }
.entry-library-links { display: grid; margin-top: 36px; }
.entry-library-links a {
  display: block; padding: 16px 2px; border-top: 1px solid #ffffff40; color: white; text-decoration: none;
}
.entry-library-links a strong, .entry-library-links a small { display: block; }
.entry-library-links a small { color: #e3d8ee; }
.entry-library-links a:is(:hover,:focus-visible) strong { text-decoration: underline; }
.entry-library-links a:focus-visible { outline: 2px solid #f1cd58; outline-offset: 3px; }
@media (max-width: 680px) {
  .auth-layout:has(.portal-library) { display: flex; flex-direction: column; }
  .portal-library { display: flex; order: 2; padding: 24px; }
  .portal-library .auth-story-kicker { margin-bottom: 10px; }
  .portal-library h2 { font-size: 28px; }
  .portal-library h2 br { display: none; }
  .portal-library h2 em::before { content: " "; }
  .entry-library-links { margin-top: 16px; }
  .auth-layout:has(.portal-library) .auth-panel { order: 1; align-self: stretch; }
}
@media (min-width: 681px) {
  .auth-layout > .auth-panel { grid-column: 2; grid-row: 1; }
  .auth-layout > .portal-library { grid-column: 1; grid-row: 1; }
}
