/* StudyPulse / HRPulse premium authentication experience
   Original implementation inspired by the supplied motion reference.
   No StudyFetch code or assets are used. */
:root {
  --sp-ink: #061d3d;
  --sp-ink-2: #0a2a52;
  --sp-muted: #6d7c91;
  --sp-line: #dce6ef;
  --sp-canvas: #f6f9fc;
  --sp-white: #ffffff;
  --sp-cyan: #05baf1;
  --sp-teal: #22cbb2;
  --sp-lime: #7cec19;
  --sp-blue: #0d6ae8;
  --sp-violet: #8067ee;
  --sp-danger: #d9455f;
  --sp-gradient: linear-gradient(112deg, var(--sp-cyan) 0%, var(--sp-teal) 48%, var(--sp-lime) 100%);
  --sp-shadow-sm: 0 8px 30px rgba(6, 29, 61, .09);
  --sp-shadow-md: 0 22px 70px rgba(6, 29, 61, .18);
  --sp-radius-sm: 12px;
  --sp-radius: 18px;
  --sp-radius-lg: 28px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--sp-canvas); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--sp-ink);
  background: var(--sp-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.auth-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 45%) minmax(580px, 55%);
  overflow: hidden;
}

.auth-form-side {
  position: relative;
  z-index: 4;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(5, 186, 241, .08), transparent 26%),
    linear-gradient(#fff, #fff);
  display: flex;
  flex-direction: column;
  padding: 30px clamp(34px, 5.2vw, 82px) 24px;
}

.brand-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform .22s ease, opacity .22s ease;
}
.brand-link:hover { transform: translateY(-1px); opacity: .92; }
.brand-logo { width: clamp(204px, 18vw, 272px); height: auto; display: block; }

.form-stage {
  width: min(100%, 470px);
  margin: auto;
  padding: 42px 0 34px;
}
.auth-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: #0d7795;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--sp-gradient);
}
.auth-title {
  margin: 0;
  color: var(--sp-ink);
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 790;
}
.auth-subtitle {
  margin: 15px 0 28px;
  max-width: 420px;
  color: var(--sp-muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.oauth-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.oauth-button {
  min-height: 50px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  background: var(--sp-white);
  color: var(--sp-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 720;
  font-size: 14px;
  box-shadow: 0 3px 12px rgba(6, 29, 61, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.oauth-button:hover {
  border-color: rgba(5, 186, 241, .55);
  box-shadow: 0 12px 30px rgba(6, 29, 61, .09);
  transform: translateY(-1px);
}
.oauth-icon { width: 18px; height: 18px; flex: 0 0 18px; }

.auth-divider {
  margin: 25px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  color: #91a0b3;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--sp-line); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 17px; }
.field label {
  display: block;
  margin: 0 0 8px;
  color: #183453;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 760;
}
.field-control { position: relative; }
.field-control svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #8b9caf;
  pointer-events: none;
  transition: color .2s ease;
}
.field input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  outline: none;
  padding: 0 46px 0 44px;
  color: var(--sp-ink);
  background: #fbfdff;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input::placeholder { color: #a4afbd; }
.field input:hover { border-color: #c8d6e4; }
.field input:focus {
  border-color: var(--sp-cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5, 186, 241, .12), 0 10px 25px rgba(6, 29, 61, .06);
}
.field-control:focus-within svg { color: #069bc7; }
.field input[aria-invalid="true"] { border-color: var(--sp-danger); box-shadow: 0 0 0 4px rgba(217,69,95,.1); }
.field-message { min-height: 18px; margin: 6px 2px 0; color: var(--sp-danger); font-size: 12px; line-height: 1.4; }

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8393a6;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.password-toggle:hover { background: #edf6fa; color: #087f9f; }
.password-toggle svg { position: static; transform: none; width: 18px; height: 18px; pointer-events: none; }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 2px 0 21px;
  font-size: 13px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sp-muted);
  cursor: pointer;
  user-select: none;
}
.checkbox input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #c5d2de;
  border-radius: 5px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background .18s ease, border .18s ease, box-shadow .18s ease;
}
.checkbox input::before {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform .14s ease;
}
.checkbox input:checked { background: linear-gradient(135deg, var(--sp-cyan), var(--sp-teal)); border-color: transparent; box-shadow: 0 4px 12px rgba(5,186,241,.25); }
.checkbox input:checked::before { transform: rotate(-45deg) scale(1); }
.checkbox-terms { align-items: flex-start; line-height: 1.55; }
.text-link {
  color: #087fa1;
  text-decoration: none;
  font-weight: 760;
  text-underline-offset: 3px;
}
.text-link:hover { color: #075f84; text-decoration: underline; }

.primary-button {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(100deg, #075ad8 0%, #00a9df 54%, #20c8a8 100%);
  box-shadow: 0 14px 28px rgba(5, 130, 206, .24);
  font-weight: 790;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.primary-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, #064fc3 0%, #07b7ec 48%, #70df26 110%);
  opacity: 0;
  transition: opacity .25s ease;
}
.primary-button::after {
  content: "";
  position: absolute;
  top: -60%; left: -30%;
  width: 34%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transform: rotate(18deg) translateX(-220%);
  transition: transform .65s ease;
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(5,130,206,.31); }
.primary-button:hover::before { opacity: 1; }
.primary-button:hover::after { transform: rotate(18deg) translateX(470%); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.button-content { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.button-arrow { transition: transform .2s ease; }
.primary-button:hover .button-arrow { transform: translateX(3px); }

.password-meter { margin: -5px 0 17px; }
.password-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.password-bars i { height: 3px; border-radius: 99px; background: #e4ebf1; transition: background .25s ease; }
.password-hint { margin: 7px 0 0; color: #8a98a9; font-size: 11.5px; }
.password-meter[data-strength="1"] i:nth-child(1) { background: #e75c65; }
.password-meter[data-strength="2"] i:nth-child(-n+2) { background: #e7a63b; }
.password-meter[data-strength="3"] i:nth-child(-n+3) { background: #1bbfc0; }
.password-meter[data-strength="4"] i { background: #58cf53; }

.auth-bottom-copy {
  margin: 22px 0 0;
  text-align: center;
  color: var(--sp-muted);
  font-size: 13px;
}
.auth-bottom-copy .text-link { margin-left: 4px; }
.legal-copy {
  margin: 20px auto 0;
  max-width: 430px;
  color: #9aa7b6;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}
.legal-copy a { color: #718399; text-decoration: none; }
.legal-copy a:hover { text-decoration: underline; }

.flash-stack { display: grid; gap: 8px; margin: 0 0 18px; }
.flash-message {
  border: 1px solid rgba(5,186,241,.22);
  border-left: 3px solid var(--sp-cyan);
  border-radius: 10px;
  padding: 11px 13px;
  background: #f1fbfe;
  color: #1b6178;
  font-size: 13px;
  line-height: 1.5;
}
.flash-message.error { border-color: rgba(217,69,95,.22); border-left-color: var(--sp-danger); background: #fff6f7; color: #963244; }
.flash-message.success { border-color: rgba(61,190,99,.22); border-left-color: #3dbe63; background: #f4fff7; color: #237b3c; }

.auth-footnote {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #9aa8b9;
  font-size: 11.5px;
}
.auth-footnote nav { display: flex; gap: 16px; }
.auth-footnote a { text-decoration: none; }
.auth-footnote a:hover { color: #65778e; }

/* Motion showcase */
.auth-showcase {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% 18%, rgba(124,236,25,.22), transparent 23%),
    radial-gradient(circle at 16% 78%, rgba(128,103,238,.32), transparent 29%),
    radial-gradient(circle at 62% 70%, rgba(5,186,241,.30), transparent 30%),
    linear-gradient(145deg, #071d47 0%, #063f82 43%, #087ca0 70%, #0e5d72 100%);
}
.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.auth-showcase::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -230px;
  bottom: -250px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 0 80px rgba(255,255,255,.02), 0 0 0 160px rgba(255,255,255,.018);
}
.showcase-inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 4vw, 58px) clamp(30px, 5vw, 82px) 36px;
}
.showcase-stat {
  width: min(640px, 100%);
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 13px 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(4, 30, 77, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 60px rgba(1,15,44,.18);
  backdrop-filter: blur(18px);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.35;
  text-align: center;
}
.stat-accent { color: #a8f85e; font-weight: 850; }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-lime); box-shadow: 0 0 0 7px rgba(124,236,25,.11), 0 0 22px rgba(124,236,25,.8); animation: statPulse 2.2s ease-in-out infinite; }

.showcase-stage {
  position: relative;
  width: min(650px, 100%);
  flex: 1;
  min-height: 500px;
  display: grid;
  place-items: center;
  margin: 8px 0 2px;
}
.orbit {
  position: absolute;
  left: 50%; top: 48%;
  width: min(520px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  transform: translate(-50%, -50%);
  animation: orbitBreath 5s ease-in-out infinite;
}
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 14%; border-radius: inherit; border: 1px dashed rgba(255,255,255,.13); }
.orbit::after { inset: 28%; border-style: solid; }
.orbit-particle { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #9df34d; box-shadow: 0 0 16px #9df34d; top: -5px; left: 50%; transform-origin: 0 calc(min(520px, 78vw) / 2); }

.intelligence-card {
  position: relative;
  z-index: 3;
  width: min(410px, 76%);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 23px;
  padding: 19px;
  color: var(--sp-ink);
  background: rgba(255,255,255,.94);
  box-shadow: 0 35px 90px rgba(2,16,45,.34), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(24px);
  animation: cardFloat 5.5s ease-in-out infinite;
}
.intelligence-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(125deg, rgba(255,255,255,.75), rgba(5,186,241,.25), rgba(124,236,25,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.intelligence-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.intelligence-kicker { color: #708197; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.intelligence-title { margin: 4px 0 0; color: var(--sp-ink); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 6px 9px; color: #087b60; background: #e8fbf4; font-size: 10px; font-weight: 800; }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #23bf87; box-shadow: 0 0 0 3px rgba(35,191,135,.12); }

.scene { position: relative; min-height: 202px; }
.scene-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(9px) scale(.985); pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.scene-panel.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.people-list { display: grid; gap: 9px; }
.person-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; border: 1px solid #e8eef4; border-radius: 12px; padding: 9px 10px; background: #fbfdff; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 850; background: linear-gradient(135deg, #0db7e9, #0871db); }
.person-row:nth-child(2) .avatar { background: linear-gradient(135deg, #7a6cf0, #4b45bf); }
.person-row:nth-child(3) .avatar { background: linear-gradient(135deg, #28c58d, #0a936c); }
.person-name { margin: 0 0 3px; font-size: 11.5px; font-weight: 780; color: #17314f; }
.person-role { margin: 0; color: #8694a6; font-size: 9.5px; }
.score { min-width: 42px; border-radius: 8px; padding: 6px 7px; color: #087b60; background: #ebfaf5; text-align: center; font-size: 10px; font-weight: 850; }

.bar-chart { height: 116px; display: flex; align-items: end; gap: 10px; padding: 12px 7px 0; border-bottom: 1px solid #dfe7ee; }
.bar { flex: 1; min-width: 14px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #05baf1, #1469df); transform-origin: bottom; animation: barGrow .8s cubic-bezier(.2,.8,.2,1) both; }
.bar:nth-child(2n) { background: linear-gradient(180deg, #70e132, #1fc39e); }
.chart-labels { display: flex; justify-content: space-between; padding: 8px 5px 0; color: #8a98a9; font-size: 8.5px; font-weight: 700; }
.insight-line { margin-top: 14px; display: flex; gap: 10px; align-items: center; border-radius: 11px; padding: 10px; background: linear-gradient(90deg, #f0fbff, #f4fff0); color: #38536d; font-size: 10px; line-height: 1.45; }
.insight-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--sp-gradient); color: #fff; font-weight: 900; }

.talent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.talent-box { min-height: 74px; border: 1px solid #e5edf3; border-radius: 12px; padding: 11px; background: #fbfdff; }
.talent-box strong { display: block; color: #153452; font-size: 20px; letter-spacing: -.04em; }
.talent-box span { display: block; margin-top: 4px; color: #8493a6; font-size: 9.5px; }
.talent-box.wide { grid-column: span 2; min-height: 62px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.ring { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sp-teal) 0 78%, #e7eef3 78%); }
.ring::after { content: "78"; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #15566b; font-size: 9px; font-weight: 850; }

.intelligence-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e4ebf1; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #7d8ca0; font-size: 9.5px; }
.scene-dots { display: flex; gap: 5px; }
.scene-dot { width: 6px; height: 6px; border: 0; border-radius: 99px; padding: 0; background: #d6e1e9; cursor: pointer; transition: width .25s ease, background .25s ease; }
.scene-dot.is-active { width: 18px; background: linear-gradient(90deg, var(--sp-cyan), var(--sp-teal)); }

.float-chip {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  background: rgba(5,34,80,.56);
  box-shadow: 0 14px 36px rgba(2,17,50,.23);
  backdrop-filter: blur(16px);
  font-size: 10.5px;
  font-weight: 740;
  white-space: nowrap;
}
.float-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-lime); box-shadow: 0 0 12px rgba(124,236,25,.85); }
.chip-one { left: 2%; top: 23%; animation: chipFloat 5.2s ease-in-out infinite; }
.chip-two { right: 1%; top: 31%; animation: chipFloat 5.8s ease-in-out .8s infinite; }
.chip-three { right: 7%; bottom: 18%; animation: chipFloat 6.2s ease-in-out 1.2s infinite; }
.chip-four { left: 5%; bottom: 23%; animation: chipFloat 5.6s ease-in-out .4s infinite; }

.showcase-copy { position: relative; z-index: 3; width: min(620px, 100%); text-align: center; }
.showcase-copy h2 { margin: 0; font-size: clamp(24px, 2.25vw, 34px); line-height: 1.12; letter-spacing: -.035em; }
.showcase-copy p { margin: 12px auto 0; max-width: 500px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.6; }
.showcase-trust { margin-top: 19px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.67); font-size: 10px; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.trust-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-item svg { width: 14px; height: 14px; color: #a8f85e; }

/* Reset-specific reassurance */
.reset-note { margin: 0 0 23px; border: 1px solid #dfeaf1; border-radius: 13px; padding: 12px 14px; display: flex; gap: 11px; align-items: flex-start; background: #f8fcfe; color: #5d7289; font-size: 12.5px; line-height: 1.55; }
.reset-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: #079bc6; }

/* Entry motion */
.brand-link, .auth-eyebrow, .auth-title, .auth-subtitle, .auth-form, .auth-bottom-copy { animation: enterUp .58s cubic-bezier(.2,.75,.2,1) both; }
.auth-eyebrow { animation-delay: .05s; }
.auth-title { animation-delay: .1s; }
.auth-subtitle { animation-delay: .15s; }
.auth-form { animation-delay: .2s; }
.auth-bottom-copy { animation-delay: .26s; }

@keyframes enterUp { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
@keyframes cardFloat { 0%,100% { transform: translateY(0) rotate(-.25deg); } 50% { transform: translateY(-11px) rotate(.25deg); } }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes statPulse { 0%,100% { transform: scale(.85); opacity: .76; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes orbitBreath { 0%,100% { transform: translate(-50%,-50%) scale(.96) rotate(0); opacity: .76; } 50% { transform: translate(-50%,-50%) scale(1.03) rotate(8deg); opacity: 1; } }
@keyframes barGrow { from { transform: scaleY(.1); } to { transform: scaleY(1); } }

@media (max-width: 1180px) {
  .auth-app { grid-template-columns: minmax(480px, 48%) 1fr; }
  .auth-form-side { padding-left: 42px; padding-right: 42px; }
  .float-chip { transform: scale(.92); }
}

@media (max-width: 980px) {
  body { background: var(--sp-canvas); }
  .auth-app { display: block; min-height: 100vh; overflow: visible; }
  .auth-form-side {
    min-height: 100vh;
    padding: 24px clamp(20px, 7vw, 68px) 22px;
    background:
      radial-gradient(circle at 88% 5%, rgba(124,236,25,.12), transparent 20%),
      radial-gradient(circle at 5% 0%, rgba(5,186,241,.13), transparent 27%),
      #fff;
  }
  .auth-showcase { display: none; }
  .brand-logo { width: min(245px, 64vw); }
  .form-stage { padding: 38px 0 28px; }
  .auth-footnote { margin-top: 20px; }
}

@media (max-width: 560px) {
  .auth-form-side { padding: 19px 20px 18px; }
  .form-stage { width: 100%; padding-top: 33px; }
  .auth-title { font-size: 34px; }
  .auth-subtitle { margin-bottom: 24px; font-size: 14.5px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-options { align-items: flex-start; }
  .auth-footnote { justify-content: center; text-align: center; }
  .auth-footnote nav { display: none; }
}

@media (max-height: 760px) and (min-width: 981px) {
  .auth-form-side { padding-top: 22px; padding-bottom: 18px; }
  .brand-logo { width: 218px; }
  .form-stage { padding-top: 22px; padding-bottom: 16px; }
  .auth-title { font-size: 34px; }
  .auth-subtitle { margin-bottom: 18px; }
  .field { margin-bottom: 12px; }
  .field input { height: 47px; }
  .primary-button { min-height: 49px; }
  .auth-divider { margin: 18px 0; }
  .showcase-inner { padding-top: 24px; padding-bottom: 22px; }
  .showcase-stage { min-height: 395px; }
  .intelligence-card { transform: scale(.9); animation-name: cardFloatCompact; }
  .showcase-copy h2 { font-size: 26px; }
  @keyframes cardFloatCompact { 0%,100% { transform: translateY(0) scale(.9); } 50% { transform: translateY(-8px) scale(.9); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Approved StudyPulse homepage V3 footer
   Added as a self-contained block so the approved authentication layout,
   form styling and showcase animation remain unchanged. */
.site-footer {
  background: #041a38;
  color: #fff;
  padding: 70px 0 22px;
}
.site-footer .shell {
  width: min(1220px, calc(100% - 44px));
  margin-inline: auto;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer img { display: block; max-width: 100%; }
.footer-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 65px;
}
.footer-brand img {
  width: 220px;
  height: 55px;
  object-fit: contain;
  object-position: left;
  filter: brightness(1.15);
}
.footer-brand p {
  font-size: 12px;
  color: #9fb5ca;
  line-height: 1.65;
}
.socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.socials a,
.socials span {
  width: 32px;
  height: 32px;
  border: 1px solid #284565;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #b6cadb;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.socials a:hover {
  background: #0b3a67;
  color: #fff;
  transform: translateY(-2px);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}
.footer-links > div {
  display: grid;
  align-content: start;
  gap: 9px;
}
.footer-links strong {
  font-size: 11px;
  margin-bottom: 6px;
}
.footer-links a {
  font-size: 9px;
  color: #8fa8bf;
  transition: color .2s ease, transform .2s ease;
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(2px);
}
.footer-bottom {
  border-top: 1px solid #173655;
  margin-top: 50px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #7893ac;
}
.footer-bottom div {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-bottom button {
  border: 0;
  background: transparent;
  color: #9ab2c7;
  font-size: 9px;
  cursor: default;
  padding: 0;
}
.footer-bottom a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4dcc31;
}

@media (max-width: 980px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .site-footer .shell { width: calc(100% - 28px); }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr 1fr; gap: 30px; }
}

