/* Shared login experience for SIGIE. */
.auth-page {
  --auth-ink: #102b4d;
  --auth-blue: #1769c2;
  --auth-aqua: #4dd5d2;
  --auth-green: #64ce9a;
  --auth-paper: #f4faff;
  --auth-yellow: #ffc965;
  min-height: 100vh;
  margin: 0;
  padding: clamp(16px, 3vw, 42px);
  display: grid;
  place-items: center;
  color: var(--auth-ink);
  background:
    radial-gradient(ellipse at 7% 8%, rgb(77 213 210 / 17%), transparent 28rem),
    radial-gradient(ellipse at 96% 93%, rgb(100 206 154 / 17%), transparent 28rem),
    #f3f8fc;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-shell {
  width: min(1240px, 100%);
  min-height: min(760px, calc(100vh - 2 * clamp(16px, 3vw, 42px)));
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr);
  overflow: hidden;
  border: 1px solid rgb(16 43 77 / 7%);
  border-radius: 30px;
  background: white;
  box-shadow: 0 28px 80px rgb(24 56 88 / 13%), 0 3px 10px rgb(24 56 88 / 5%);
}

.auth-story {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px);
  color: white;
  background: linear-gradient(145deg, #0d2b52 4%, #124a82 56%, #11658a 100%);
}
.auth-story::before, .auth-story::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}
.auth-story::before {
  width: 460px; height: 460px; right: -180px; top: -220px;
  border: 1px solid rgb(255 255 255 / 15%); border-radius: 50%;
  box-shadow: 0 0 0 36px rgb(255 255 255 / 3%), 0 0 0 80px rgb(255 255 255 / 3%);
}
.auth-story::after {
  width: 520px; height: 260px; left: -180px; bottom: -195px;
  border: 1px solid rgb(77 213 210 / 28%); border-radius: 50%;
  box-shadow: 0 0 0 26px rgb(77 213 210 / 5%), 0 0 0 58px rgb(77 213 210 / 4%);
}
.auth-story-glow {
  position: absolute; z-index: -1; width: 240px; height: 240px; top: 31%; left: 29%;
  border-radius: 50%; background: rgb(77 213 210 / 10%); filter: blur(70px);
}
.auth-brand { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.auth-brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 25%); border-radius: 15px;
  color: var(--auth-ink); background: linear-gradient(145deg, #9df1e5, #72d8cf);
  font: 700 23px/1 "Space Grotesk", "Segoe UI", sans-serif;
  box-shadow: 0 8px 24px rgb(0 0 0 / 15%);
}
.auth-brand-name { display: grid; gap: 1px; }
.auth-brand-name strong { font: 700 17px/1.1 "Space Grotesk", "Segoe UI", sans-serif; letter-spacing: .06em; }
.auth-brand-name span, .auth-brand-context { color: rgb(255 255 255 / 70%); font-size: 11px; letter-spacing: .02em; }
.auth-brand-context { margin-left: auto; padding: 8px 11px; border: 1px solid rgb(255 255 255 / 17%); border-radius: 999px; background: rgb(255 255 255 / 6%); }
.auth-story-copy { max-width: 630px; margin: clamp(36px, 6vh, 66px) 0 18px; }
.auth-kicker { margin: 0 0 13px; color: #83e2d5; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-story-copy h1 {
  max-width: 620px; margin: 0; color: #fff;
  font: 700 clamp(32px, 4vw, 54px)/1.06 "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -.045em; text-wrap: balance;
}
.auth-story-lede { max-width: 565px; margin: 17px 0 0; color: rgb(238 248 255 / 82%); font-size: clamp(14px, 1.3vw, 16px); line-height: 1.65; }

.auth-flow-art { position: relative; min-height: 260px; flex: 1 1 auto; margin: 18px 0 20px; }
.flow-source, .flow-comment, .flow-output {
  position: absolute; z-index: 1; border: 1px solid rgb(255 255 255 / 55%);
  color: var(--auth-ink); background: rgb(255 255 255 / 96%);
  box-shadow: 0 20px 45px rgb(0 18 43 / 22%);
}
.flow-source { top: 6px; left: 2%; width: min(69%, 390px); padding: 18px; border-radius: 17px; transform: rotate(-2deg); }
.flow-source-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid #e8eef4; }
.flow-file-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #1469b5; background: #e7f4ff; font-size: 23px; }
.flow-source-title { display: grid; gap: 2px; }
.flow-source-title small { color: #73869b; font-size: 10px; }
.flow-source-title strong { font-size: 14px; }
.flow-file-type { margin-left: auto; color: #13815f; font-size: 10px; font-weight: 800; }
.flow-row { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; color: #64788d; font-size: 11px; }
.flow-row strong { overflow: hidden; color: #203e5c; font-size: 11px; font-weight: 700; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.flow-grade-row strong { display: grid; width: 23px; height: 23px; place-items: center; margin: -5px 0 -4px; border-radius: 7px; color: #0b855f; background: #dcf8e9; font-size: 13px; }
.flow-comment { right: 1%; bottom: 15px; width: min(72%, 395px); padding: 17px 19px; border-radius: 17px; transform: rotate(1.5deg); }
.flow-comment-head { display: flex; align-items: center; gap: 8px; color: #1262a7; font-size: 11px; font-weight: 700; }
.flow-comment-mark { color: #24af9d; font: 700 33px/.6 Georgia, serif; }
.flow-comment p { margin: 9px 0 13px; color: #244460; font-size: 12px; line-height: 1.5; }
.flow-comment-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-comment-tags span, .flow-comment-tags strong { padding: 5px 8px; border-radius: 999px; color: #38617c; background: #edf6fa; font-size: 9px; }
.flow-comment-tags strong { color: #08714f; background: #e2f8ea; }
.flow-output { top: 21px; right: 4%; display: grid; grid-template-columns: 29px auto; align-items: center; gap: 2px 8px; padding: 10px 13px; border-radius: 14px; transform: rotate(3deg); }
.flow-output-check { grid-row: span 2; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #087752; background: #dff8e9; font-weight: 800; }
.flow-output span:nth-child(2) { color: #61768a; font-size: 9px; }
.flow-output strong { font-size: 13px; }
.flow-connector { position: absolute; z-index: 0; top: 48%; left: 25%; width: 55%; border-top: 2px dashed rgb(115 233 220 / 62%); transform: rotate(-13deg); }
.flow-signal { position: absolute; top: -5px; left: 12%; width: 8px; height: 8px; border-radius: 50%; background: #8df3dc; box-shadow: 0 0 0 6px rgb(141 243 220 / 17%); animation: auth-signal 2.8s ease-in-out infinite; }
.auth-story-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; color: rgb(240 250 255 / 84%); font-size: 12px; }
.auth-story-foot-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgb(131 226 213 / 40%); border-radius: 50%; color: #8de5d9; }
@keyframes auth-signal { 50% { left: 82%; box-shadow: 0 0 0 10px rgb(141 243 220 / 9%); } }

.auth-panel { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 58px); background: linear-gradient(180deg, #fff, #fbfdff); }
.auth-card { width: min(390px, 100%); margin: auto; }
.auth-card-kicker { margin: 0 0 12px; color: #22897e; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-card h2 { margin: 0; color: var(--auth-ink); font: 700 clamp(28px, 3vw, 36px)/1.12 "Space Grotesk", "Segoe UI", sans-serif; letter-spacing: -.04em; }
.auth-card-copy { margin: 13px 0 26px; color: #60758a; font-size: 14px; line-height: 1.65; }
.auth-google { display: flex; justify-content: center; min-height: 46px; margin: 0 auto; }
.auth-google iframe { max-width: 100%; }
.auth-google-note { margin: 15px 0 0; color: #6c7f91; font-size: 11px; line-height: 1.55; text-align: center; }
.auth-register-block { margin-top: 30px; padding-top: 24px; border-top: 1px solid #e8eff4; }
.auth-register-block > p { margin: 0 0 10px; color: #5d7287; font-size: 12px; }
.auth-register-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #125fa9; font-size: 13px; font-weight: 700; text-decoration: none; }
.auth-register-link:hover { color: #0d8b76; }
.auth-register-arrow { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #d9e9f2; border-radius: 50%; background: #f3f9fc; transition: transform .2s ease, background .2s ease; }
.auth-register-link:hover .auth-register-arrow { transform: translate(2px, -2px); background: #e6f8f2; }
.auth-card-foot { margin: 27px 0 0; color: #8090a0; font-size: 10px; line-height: 1.55; }
.auth-panel-caption { margin: clamp(30px, 7vh, 65px) 0 0; color: #96a4b2; font-size: 10px; letter-spacing: .05em; text-align: center; }
.auth-switch-link, .auth-return-link { display: block; margin-top: 19px; color: #718499; font-size: 11px; line-height: 1.5; text-decoration: none; }
.auth-switch-link span { color: #1769b5; font-weight: 700; }
.auth-switch-link:hover, .auth-return-link:hover { color: #0d8b76; }
.auth-return-link { text-align: center; }
.request-next-step { margin-top: 24px; padding-top: 18px; }
.request-step-preview { display: flex; align-items: center; gap: 10px; color: #34536d; }
.request-step-preview > span:first-child { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #087657; background: #e0f7ec; font-size: 11px; font-weight: 800; }
.request-step-preview > span:last-child { display: grid; gap: 2px; }
.request-step-preview strong { font-size: 11px; }
.request-step-preview small { color: #8090a0; font-size: 10px; }
.auth-page :focus-visible { outline: 3px solid #f3b84b; outline-offset: 4px; }
.auth-page .flash { margin: 0 0 18px; }

/* School request details: same SIGIE palette with the long form kept readable. */
.registration-page {
  min-height: 100vh; margin: 0; padding: clamp(14px, 2.5vw, 34px);
  color: #102b4d; background:
    radial-gradient(ellipse at 8% 10%, rgb(77 213 210 / 16%), transparent 28rem),
    radial-gradient(ellipse at 95% 95%, rgb(100 206 154 / 15%), transparent 26rem), #f3f8fc;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}
.registration-page *, .registration-page *::before, .registration-page *::after { box-sizing: border-box; }
.registration-shell {
  width: min(1340px, 100%); min-height: calc(100vh - 2 * clamp(14px, 2.5vw, 34px));
  display: grid; grid-template-columns: minmax(270px, .34fr) minmax(0, .9fr);
  overflow: hidden; margin: 0 auto; border: 1px solid rgb(16 43 77 / 7%); border-radius: 28px;
  background: #fff; box-shadow: 0 28px 80px rgb(24 56 88 / 13%), 0 3px 10px rgb(24 56 88 / 5%);
}
.registration-aside {
  position: relative; isolation: isolate; display: flex; min-width: 0; flex-direction: column; overflow: hidden;
  padding: clamp(24px, 3vw, 42px); color: #fff; background: linear-gradient(145deg, #0d2b52 4%, #124a82 60%, #11658a 100%);
}
.registration-aside::after { position: absolute; z-index: -1; width: 390px; height: 390px; right: -210px; bottom: -170px; border: 1px solid rgb(77 213 210 / 24%); border-radius: 50%; box-shadow: 0 0 0 32px rgb(77 213 210 / 5%), 0 0 0 68px rgb(77 213 210 / 4%); content: ""; }
.registration-aside .auth-brand-context { margin-left: auto; }
.registration-step-label { margin: clamp(42px, 7vh, 74px) 0 12px; color: #83e2d5; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.registration-aside h2 { max-width: 360px; margin: 0; color: #fff; font: 700 clamp(27px, 3vw, 38px)/1.1 "Space Grotesk", "Segoe UI", sans-serif; letter-spacing: -.04em; }
.registration-aside-copy { max-width: 360px; margin: 14px 0 26px; color: rgb(238 248 255 / 80%); font-size: 13px; line-height: 1.65; }
.registration-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.registration-timeline li { position: relative; display: flex; gap: 12px; min-height: 67px; color: rgb(255 255 255 / 59%); }
.registration-timeline li:not(:last-child)::after { position: absolute; top: 31px; bottom: 0; left: 14px; border-left: 1px dashed rgb(255 255 255 / 25%); content: ""; }
.registration-timeline li > span { z-index: 1; width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; color: inherit; background: #164b7c; font-size: 10px; font-weight: 800; }
.registration-timeline li > div { display: grid; align-content: start; gap: 4px; padding-top: 1px; }
.registration-timeline strong { color: inherit; font-size: 11px; }
.registration-timeline small { color: rgb(255 255 255 / 57%); font-size: 10px; }
.registration-timeline .is-complete > span { border-color: #64ce9a; color: #0d5b52; background: #9be9ce; }
.registration-timeline .is-complete strong { color: rgb(255 255 255 / 86%); }
.registration-timeline .is-current > span { border-color: #7be2d7; color: #103c66; background: #7be2d7; box-shadow: 0 0 0 5px rgb(123 226 215 / 12%); }
.registration-timeline .is-current strong { color: #fff; }
.registration-aside-note { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding: 14px 0 0; border-top: 1px solid rgb(255 255 255 / 16%); color: rgb(241 250 255 / 78%); }
.registration-aside-note > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(131 226 213 / 42%); border-radius: 50%; color: #8de5d9; }
.registration-aside-note p { margin: 2px 0 0; font-size: 10px; line-height: 1.5; }
.registration-page .public-registration-card { width: auto; max-width: none; min-width: 0; margin: 0; padding: clamp(24px, 3vw, 42px); border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.registration-page .public-registration-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #e8eff4; }
.registration-page .public-registration-head > div { max-width: 760px; }
.registration-page .eyebrow { margin: 0 0 8px; color: #168577; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.registration-page .public-registration-head h1 { margin: 0; color: #102b4d; font: 700 clamp(27px, 3vw, 35px)/1.12 "Space Grotesk", "Segoe UI", sans-serif; letter-spacing: -.04em; }
.registration-page .login-copy { margin: 11px 0 0; color: #61758a; font-size: 12px; line-height: 1.6; }
.registration-page > .registration-shell .muted.small { margin: 18px 0; color: #75899b; font-size: 11px; line-height: 1.5; }
.registration-page .public-registration-form { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(270px, .85fr); gap: 20px; }
.registration-page .form-section { min-width: 0; padding: 18px; border: 1px solid #e7eef4; border-radius: 16px; background: #fbfdff; }
.registration-page .form-section h3 { margin: 0 0 16px; color: #183b5e; font: 700 14px/1.3 "Space Grotesk", "Segoe UI", sans-serif; }
.registration-page .form-section h3.section-gap { margin-top: 24px; }
.registration-page .form-section > .muted.small { margin: -7px 0 12px; color: #75899b; font-size: 10px; line-height: 1.5; }
.registration-page .form-section label { display: grid; gap: 6px; margin: 0 0 13px; color: #3d566d; font-size: 10px; font-weight: 700; }
.registration-page .form-section input, .registration-page .form-section textarea, .registration-page .form-section select {
  width: 100%; min-width: 0; min-height: 39px; padding: 9px 11px; border: 1px solid #d8e3eb; border-radius: 9px;
  color: #183b5e; background: #fff; font: 400 12px/1.4 "DM Sans", "Segoe UI", sans-serif; box-shadow: 0 1px 2px rgb(16 43 77 / 3%);
}
.registration-page .form-section textarea { min-height: 68px; resize: vertical; }
.registration-page .form-section input::placeholder, .registration-page .form-section textarea::placeholder { color: #a0adba; }
.registration-page .form-section input:focus-visible, .registration-page .form-section textarea:focus-visible, .registration-page .form-section select:focus-visible { outline: 3px solid rgb(243 184 75 / 65%); outline-offset: 2px; border-color: #73cfc1; }
.registration-page .two-col, .registration-page .three-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.registration-page .three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.registration-page .registration-account-note { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 15px; padding: 11px; border: 1px solid #d9eee7; border-radius: 10px; color: #4d6c67; background: #f0faf5; font-size: 10px; font-weight: 400; line-height: 1.5; }
.registration-page .registration-account-note .secure-dot { margin-top: 2px; }
.registration-page .field-help { color: #75899b; font-size: 9px; line-height: 1.5; }
.registration-page .public-registration-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 3px 2px 0; }
.registration-page .public-registration-actions .button { flex: 0 0 auto; min-width: 180px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(110deg, #1469bd, #168b91); box-shadow: 0 8px 20px rgb(23 105 194 / 17%); font-weight: 700; }
.registration-page .public-registration-actions .button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.registration-page :focus-visible { outline: 3px solid #f3b84b; outline-offset: 3px; }

.registration-success-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 23px; border: 1px solid #c8f0d9; border-radius: 16px; color: #07815b; background: #e5f9ed; font-size: 23px; font-weight: 800; box-shadow: 0 8px 20px rgb(21 126 89 / 9%); }
.registration-result-card h2 { font-size: clamp(26px, 3vw, 33px); }
.registration-result-card .success-box { display: grid; gap: 6px; margin: 22px 0; padding: 15px; border: 1px solid #dcebe5; border-radius: 12px; color: #496579; background: #f4faf7; font-size: 11px; line-height: 1.55; }
.registration-result-card .success-box strong { color: #17624e; font-size: 11px; }
.registration-result-button { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(110deg, #1469bd, #168b91); font-size: 12px; font-weight: 700; text-decoration: none; }

@media (max-width: 850px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); }
  .auth-story { padding: 28px; }
  .auth-brand-context { font-size: 9px; }
  .auth-story-copy { margin-top: 48px; }
  .auth-flow-art { min-height: 230px; }
  .auth-panel { padding: 30px 24px; }
  .registration-page .public-registration-form { grid-template-columns: 1fr; }
  .registration-page .public-registration-actions { grid-column: 1; }
}
@media (max-width: 680px) {
  .auth-page { min-height: 100svh; padding: 12px; place-items: start center; }
  .auth-shell { width: min(520px, 100%); min-height: calc(100svh - 24px); grid-template-columns: 1fr; border-radius: 23px; }
  .auth-story { min-height: 430px; padding: 24px; }
  .auth-story-copy { margin: 35px 0 10px; }
  .auth-story-copy h1 { max-width: 500px; font-size: clamp(32px, 9vw, 44px); }
  .auth-story-lede { max-width: 480px; margin-top: 12px; font-size: 13px; }
  .auth-flow-art { min-height: 205px; margin: 8px 0 12px; }
  .flow-source { left: 0; width: min(72%, 340px); padding: 13px; }
  .flow-comment { right: 0; bottom: 7px; width: min(77%, 355px); padding: 13px; }
  .flow-output { right: 0; top: 12px; padding: 8px 10px; }
  .auth-story-foot { font-size: 11px; }
  .auth-panel { padding: 34px 26px 24px; }
  .auth-card { width: min(400px, 100%); }
  .auth-card h2 { font-size: 31px; }
  .auth-panel-caption { margin-top: 30px; }
  .registration-page { min-height: 100svh; padding: 10px; }
  .registration-shell { min-height: calc(100svh - 20px); grid-template-columns: 1fr; border-radius: 22px; }
  .registration-aside { padding: 22px 24px 18px; }
  .registration-step-label { margin: 25px 0 8px; }
  .registration-aside h2 { max-width: 540px; font-size: 28px; }
  .registration-aside-copy { max-width: 520px; margin: 9px 0 16px; font-size: 12px; }
  .registration-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .registration-timeline li { display: grid; align-content: start; gap: 7px; min-height: 71px; }
  .registration-timeline li:not(:last-child)::after { top: 14px; right: -5px; bottom: auto; left: 38px; border-top: 1px dashed rgb(255 255 255 / 25%); border-left: 0; }
  .registration-timeline li > div { gap: 3px; }
  .registration-timeline strong { font-size: 9px; }
  .registration-timeline small { font-size: 8px; line-height: 1.3; }
  .registration-aside-note { display: none; }
  .registration-page .public-registration-card { padding: 24px; }
  .registration-page .public-registration-actions { align-items: stretch; flex-direction: column; }
  .registration-page .public-registration-actions .button { width: 100%; }
}
@media (max-width: 390px) {
  .auth-brand-context { display: none; }
  .auth-story { min-height: 450px; padding: 20px; }
  .auth-flow-art { min-height: 185px; }
  .flow-row { padding-top: 9px; font-size: 10px; }
  .flow-row strong { max-width: 62%; font-size: 10px; }
  .flow-comment-tags span, .flow-comment-tags strong { padding: 4px 6px; font-size: 8px; }
  .auth-panel { padding: 28px 20px 22px; }
  .registration-page .public-registration-card { padding: 20px 15px; }
  .registration-page .form-section { padding: 14px; }
  .registration-page .two-col, .registration-page .three-col { grid-template-columns: 1fr; gap: 0; }
  .registration-timeline small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
