:root {
  --l-blue: #116fae;
  --l-blue-dark: #07517f;
  --l-green: #69a72d;
  --l-green-dk: #4d8520;
  --l-ink: #082c46;
  --l-muted: #6d8594;
  --l-line: #e7eef4;
  --hero-section-gap: 20px;
  --glass-fill: rgba(255, 255, 255, .14);
  --glass-fill-strong: rgba(238, 246, 251, .22);
  --glass-border: rgba(255, 255, 255, .22);
  --glass-ink: #eaf4fb;
  --glass-ink-soft: rgba(234, 244, 251, .78);
  --panel-wash: linear-gradient(165deg, #dceef8 0%, #e8f2f8 38%, #edf3f6 72%, #e6f0e8 100%);
}

body.auth-page {
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", Calibri, Tahoma, sans-serif;
  color: var(--l-ink);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  html:has(body.auth-page),
  body.auth-page {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }
}

.auth-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.auth-page .auth-shell {
  min-height: 100svh;
  align-items: start;
}

@media (min-width: 1024px) {
  .auth-shell,
  .auth-page .auth-shell {
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    height: 100svh;
    max-height: 100svh;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
  }

  .auth-page .auth-hero,
  .auth-page .auth-form-panel {
    min-width: 0;
    max-width: 100%;
  }
}

@media (min-width: 1400px) {
  .auth-shell,
  .auth-page .auth-shell {
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  }
}

/* —— Hero —— */
.auth-page .auth-hero {
  box-sizing: border-box;
  width: 100%;
  height: 100svh;
  max-height: 100svh;
  min-height: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, rgba(17, 111, 174, .45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 78%, rgba(105, 167, 45, .18) 0%, transparent 50%),
    linear-gradient(148deg, #061f32 0%, #082c46 28%, #0a5278 62%, #0f74aa 100%);
}

.auth-hero {
  position: relative;
  box-sizing: border-box;
  height: 100svh;
  max-height: 100svh;
  padding: clamp(20px, 2.6vh, 32px) clamp(32px, 4.5vw, 72px) clamp(14px, 1.8vh, 22px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, rgba(17, 111, 174, .45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 78%, rgba(105, 167, 45, .18) 0%, transparent 50%),
    linear-gradient(148deg, #061f32 0%, #082c46 28%, #0a5278 62%, #0f74aa 100%);
}

/* Corporate login: pine green identity (#01796F) */
body.lms-login-corporate .auth-page .auth-hero,
body.lms-login-corporate.auth-page .auth-hero,
body.lms-login-corporate .auth-hero {
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, rgba(10, 169, 154, .38) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 78%, rgba(1, 121, 111, .32) 0%, transparent 50%),
    linear-gradient(148deg, #012a27 0%, #014843 28%, #01796F 62%, #0aa99a 100%);
}

body.lms-login-corporate .hero-atmosphere {
  background:
    radial-gradient(circle at 72% 18%, rgba(220, 245, 242, .12) 0%, transparent 32%),
    radial-gradient(circle at 18% 72%, rgba(1, 121, 111, .18) 0%, transparent 38%);
}

body.lms-login-corporate .hero-atmosphere::after {
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 40%, rgba(1, 32, 30, .5) 100%);
}

body.lms-login-corporate .auth-page .auth-legal,
body.lms-login-corporate .auth-legal {
  color: rgba(210, 236, 232, .9);
}

body.lms-login-corporate .auth-form-panel {
  --panel-wash: linear-gradient(165deg, #eaf6f4 0%, #f0f8f7 38%, #f3f7f6 72%, #e8f3f1 100%);
}

body.lms-login-corporate .auth-secure-badge,
body.lms-login-corporate .auth-portal-title {
  color: #01796F;
}

body.lms-login-corporate .lms-login-submit .btn-signin,
body.lms-login-corporate .btn-signin {
  background: linear-gradient(135deg, #0aa99a 0%, #01796F 52%, #014d47 100%) !important;
  border-color: transparent;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(1, 121, 111, .28);
}

body.lms-login-corporate .lms-login-submit .btn-signin:hover,
body.lms-login-corporate .btn-signin:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #016960 52%, #013d38 100%) !important;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, .08) 0%, transparent 32%),
    radial-gradient(circle at 18% 72%, rgba(105, 167, 45, .12) 0%, transparent 38%);
  opacity: 1;
}

.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, .045) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: .55;
  mix-blend-mode: soft-light;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 40%, rgba(4, 20, 34, .45) 100%);
  pointer-events: none;
}

.hero-stack {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: visible;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(10px, 1.4vh, 16px);
  width: 100%;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) and (max-height: 880px) {
  .hero-stack {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.auth-page .hero-stack {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.auth-page .hero-stack::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.auth-page .auth-legal {
  flex: 0 0 auto;
  margin: 0;
  padding: clamp(10px, 1.2vh, 14px) 0 0;
  font-size: .67rem;
  line-height: 1.3;
  color: rgba(186, 214, 228, .92);
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: block;
  margin-bottom: 0;
}

.auth-brand img {
  width: clamp(220px, 15vw, 260px);
  max-height: clamp(62px, 6vh, 78px);
  object-fit: contain;
}

.auth-page .hero-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 2.6vh, var(--hero-section-gap));
  margin: clamp(8px, 1.4vh, 14px) 0 0;
  padding: 0 !important;
  width: 100%;
  max-width: none;
}

.hero-intro {
  display: grid;
  gap: 10px;
  margin: 0;
  width: 100%;
  max-width: none;
}

.auth-hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -280px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 190, 230, .2) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.auth-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 167, 45, .22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.lms-login-corporate .auth-hero::before {
  background: radial-gradient(circle, rgba(10, 169, 154, .28) 0%, transparent 68%);
}

body.lms-login-corporate .auth-hero::after {
  background: radial-gradient(circle, rgba(1, 121, 111, .32) 0%, transparent 70%);
}

.auth-brand,
.hero-stack,
.hero-copy,
.auth-legal {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0;
  max-width: none;
  width: 100%;
  font-family: Fraunces, "Plus Jakarta Sans", Georgia, serif;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}

.hero-copy > p,
.hero-intro > p {
  max-width: min(62ch, 100%);
  margin: 0;
  color: rgba(223, 240, 249, .95);
  font-size: .84rem;
  line-height: 1.55;
  font-weight: 400;
}

/* Outer LMS info window */
.learning-preview {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 1.8vh, 22px) clamp(16px, 1.8vw, 22px);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .08) 100%);
  box-shadow:
    0 18px 48px rgba(2, 18, 32, .22),
    inset 0 1px 0 rgba(255, 255, 255, .22);
  text-align: left;
  cursor: default;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}

.learning-preview:hover {
  border-color: rgba(255, 255, 255, .36);
  box-shadow:
    0 22px 52px rgba(2, 18, 32, .26),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}

.preview-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  min-height: 34px;
}

.preview-dots {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.preview-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(233, 242, 248, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.preview-top small,
.preview-lms-title {
  display: inline-block;
  margin: 0 auto;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 6px 16px rgba(2, 18, 32, .18);
}

.preview-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  transition: opacity .28s ease, transform .28s ease;
}

.preview-body.is-changing {
  opacity: .52;
  transform: translateY(4px);
}

.preview-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--l-green);
  color: #fff;
  font-size: 1.45rem;
  transition: transform .28s ease, opacity .28s ease;
}

.preview-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.preview-info small {
  font-size: .74rem;
  letter-spacing: .05em;
  color: rgba(226, 240, 248, .92);
  font-weight: 600;
}

.preview-info strong {
  font-size: clamp(1.14rem, 1.45vw, 1.42rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-info span {
  font-size: .76rem;
  color: rgba(226, 240, 248, .92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-pct {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.preview-bar-wrap {
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.preview-bar-fill {
  height: 100%;
  width: 42%;
  border-radius: 999px;
  background: var(--l-green);
  transition: width .45s ease;
}

/* Inner info cards — light grey / white / off-white (no glass) */
.learning-preview-legacy {
  cursor: default;
  max-height: none;
  overflow: visible;
}

.learning-preview-legacy:hover {
  transform: none;
  border-color: rgba(255, 255, 255, .34);
}

.preview-legacy-body {
  text-align: left;
  color: #0d2f45;
}

.preview-legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
  align-items: stretch;
}

.preview-legacy-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-legacy-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 0;
  padding: 16px 16px 18px;
  border-radius: 16px;
  border: 1px solid #e4e9ee;
  background:
    linear-gradient(165deg, #ffffff 0%, #f7f8fa 42%, #eef1f4 100%);
  box-shadow:
    0 10px 28px rgba(2, 20, 36, .14),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  box-sizing: border-box;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.preview-legacy-block:hover {
  transform: translateY(-3px);
  border-color: #d7dee6;
  background:
    linear-gradient(165deg, #ffffff 0%, #f9fafb 42%, #f1f3f6 100%);
  box-shadow:
    0 16px 36px rgba(2, 20, 36, .18),
    inset 0 1px 0 #fff;
}

.preview-legacy-icon {
  width: 36px;
  height: 36px;
  margin: 0 0 12px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8f3fb 0%, #d7ebf7 100%);
  color: #116fae;
  border: 1px solid #c5dcec;
  font-size: .95rem;
  flex: 0 0 auto;
}

.preview-legacy-body h3 {
  margin: 0 0 8px;
  text-align: left;
  color: #082c46;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
  flex: 0 0 auto;
}

.preview-legacy-body p {
  margin: 0;
  text-align: left;
  color: #3d5a6e;
  font-size: .74rem;
  line-height: 1.55;
  font-weight: 500;
  flex: 1 1 auto;
}

.preview-legacy-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
}

.preview-legacy-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3f7fb 0%, #e8f0f7 100%);
  color: #07517f !important;
  border: 1px solid #c5d7e6;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none !important;
  text-align: left;
  flex: 0 0 auto;
  box-sizing: border-box;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}

.preview-legacy-block > .preview-legacy-chip {
  margin-top: auto;
}

.preview-legacy-chip:hover {
  background: linear-gradient(135deg, #e7f2fa 0%, #d9eaf6 100%);
  border-color: #9fc4dd;
  color: #053d61 !important;
  transform: translateY(-1px);
}

.preview-legacy-chip-alt {
  background: linear-gradient(135deg, #edf2f6 0%, #e2e9ef 100%);
  border: 1px solid #c8d3de;
  color: #0a5278 !important;
}

/* Study theme — dark blue text on cards */
body.lms-login-study .preview-legacy-body h3 {
  color: #082c46;
}

body.lms-login-study .preview-legacy-body p {
  color: #3d5a6e;
}

body.lms-login-study .preview-lms-title {
  background: rgba(7, 81, 127, .35);
  border-color: rgba(255, 255, 255, .42);
}

/* Corporate theme — pine green text on cards */
body.lms-login-corporate .preview-legacy-body h3 {
  color: #014d47;
}

body.lms-login-corporate .preview-legacy-body p {
  color: #3d6f68;
}

body.lms-login-corporate .preview-legacy-icon {
  background: linear-gradient(135deg, #e6f5f3 0%, #d4efeB 100%);
  color: #01796F;
  border-color: #b8d9d5;
}

body.lms-login-corporate .preview-legacy-chip {
  background: linear-gradient(135deg, #eef7f6 0%, #e2f2ef 100%);
  color: #014d47 !important;
  border-color: #b8d9d5;
}

body.lms-login-corporate .preview-legacy-chip:hover {
  background: linear-gradient(135deg, #e2f2ef 0%, #d2ebe7 100%);
  border-color: #8fc4bd;
  color: #013a36 !important;
}

body.lms-login-corporate .preview-legacy-chip-alt {
  background: linear-gradient(135deg, #e8f3f1 0%, #dceeea 100%);
  border-color: #b0d4cf;
  color: #015c55 !important;
}

body.lms-login-corporate .preview-lms-title {
  background: rgba(1, 77, 71, .4);
  border-color: rgba(255, 255, 255, .42);
}

.preview-legacy-chip-green {
  background: linear-gradient(135deg, #69a72d 0%, #548723 100%);
  border-color: transparent;
  color: #fff !important;
  font-weight: 700;
  justify-content: center;
  margin-top: auto;
  box-shadow: 0 8px 18px rgba(61, 110, 20, .28);
}

.preview-legacy-chip-green:hover {
  background: linear-gradient(135deg, #74b636 0%, #4d8520 100%);
  color: #fff !important;
}

.preview-legacy-chip-corporate {
  background: linear-gradient(135deg, #0aa99a 0%, #01796F 55%, #014d47 100%);
  border-color: transparent;
  color: #fff !important;
  font-weight: 700;
  justify-content: center;
  margin-top: auto;
  box-shadow: 0 8px 18px rgba(1, 121, 111, .32);
}

.preview-legacy-chip-corporate:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #016960 55%, #013d38 100%);
  color: #fff !important;
}

.preview-legacy-chip-study {
  background: linear-gradient(135deg, #2b9ed4 0%, #116fae 55%, #07517f 100%);
  border-color: transparent;
  color: #fff !important;
  font-weight: 700;
  justify-content: center;
  margin-top: auto;
  box-shadow: 0 8px 18px rgba(17, 111, 174, .32);
}

.preview-legacy-chip-study:hover {
  background: linear-gradient(135deg, #3aabd9 0%, #0f679f 55%, #06466f 100%);
  color: #fff !important;
}

@media (max-width: 1200px) {
  .preview-legacy-grid {
    grid-template-columns: 1fr;
  }
}

.preview-note {
  margin: 12px 0 14px;
  font-size: .76rem;
  font-weight: 500;
  color: rgba(228, 241, 249, .95);
}

/* Trust row — frosted pills */
.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 16px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  transition: opacity .28s ease, transform .28s ease;
  box-sizing: border-box;
}

.hero-trust-row.is-changing {
  opacity: .65;
  transform: translateY(4px);
}

.preview-trust-card {
  min-height: 72px;
  height: 100%;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #eaf4fb;
  text-align: center;
  box-shadow:
    0 8px 20px rgba(2, 20, 36, .14),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  overflow: hidden;
  box-sizing: border-box;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.preview-trust-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .18);
}

.preview-trust-card i {
  font-size: 1rem;
  color: #b4e06a;
  line-height: 1;
  margin: 0 0 2px;
}

.preview-trust-card strong {
  display: block;
  font-size: .8rem;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.preview-trust-card span {
  font-size: .7rem;
  line-height: 1.3;
  color: rgba(214, 232, 242, .82);
  margin: 0;
  padding: 0;
  text-align: center;
  font-weight: 400;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .hero-trust-row:not(:empty) {
    min-height: 0;
  }
}

.auth-legal {
  color: rgba(182, 211, 229, .72);
  font-size: .62rem;
}

/* —— Motions —— */
@keyframes auth-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-enter {
  animation: auth-fade-up .7s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-enter-1 { animation-delay: .05s; }
.auth-enter-2 { animation-delay: .14s; }
.auth-enter-3 { animation-delay: .24s; }
.auth-enter-4 { animation-delay: .42s; }
.auth-enter-form { animation-delay: .18s; }

.auth-card-enter {
  animation: auth-fade-up .65s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-card-enter-1 { animation-delay: .32s; }
.auth-card-enter-2 { animation-delay: .42s; }
.auth-card-enter-3 { animation-delay: .52s; }

/* —— Right form panel —— */
@media (min-width: 1024px) {
  .auth-page .auth-form-panel {
    box-sizing: border-box;
    height: 100%;
    max-height: 100svh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding: 0;
    position: relative;
    background: var(--panel-wash);
  }

  .auth-page .auth-form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 70% 50% at 80% 12%, rgba(17, 111, 174, .12) 0%, transparent 55%),
      radial-gradient(ellipse 55% 40% at 10% 90%, rgba(105, 167, 45, .08) 0%, transparent 50%);
    z-index: 0;
  }

  .form-scroll-area {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 2.4vh, 28px) clamp(16px, 2.8vw, 28px);
  }

  .form-scroll-area .auth-panel-stack {
    flex: 0 0 auto;
    margin-block: 0;
    margin-inline: auto;
    width: 100%;
    max-width: min(440px, 100%);
  }
}

.mobile-topbar {
  display: none;
}

.auth-panel-stack {
  width: 100%;
  max-width: min(440px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.auth-card {
  width: 100%;
  border: 1px solid rgba(17, 111, 174, .14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(247, 251, 254, .9) 100%);
  box-shadow:
    0 20px 48px rgba(8, 44, 70, .1),
    0 2px 0 rgba(255, 255, 255, .7) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: visible;
}

.auth-years-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 16px 18px 14px;
  text-align: center;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(135deg, rgba(17, 111, 174, .1) 0%, rgba(105, 167, 45, .1) 55%, rgba(232, 245, 236, .55) 100%);
  border: 0;
  border-bottom: 1px solid rgba(17, 111, 174, .1);
  box-shadow: none;
  overflow: hidden;
}

.auth-years-inline img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-years-inline div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.auth-years-inline small {
  font-size: .6rem;
  color: #5f7f96;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.auth-years-inline strong {
  font-size: .78rem;
  color: #0d3554;
  font-weight: 700;
}

.auth-heading {
  margin: 0;
  padding: 10px 18px 8px;
  text-align: center;
}

.auth-portal-kicker {
  margin: 0 0 4px;
  font-family: "Roboto", "Poppins", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5f7d90;
}

.auth-portal-title,
.auth-secure-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 6px;
  font-family: "Poppins", "Roboto", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  color: #116fae;
  text-transform: none;
}

.auth-portal-title i,
.auth-secure-badge i {
  font-size: .92em;
  line-height: 1;
}

.auth-heading-sub {
  margin: 0;
  font-family: "Roboto", "Poppins", sans-serif;
  color: #597286;
  font-size: .84rem;
  font-weight: 500;
  text-align: center;
}

body.lms-login-study .auth-portal-kicker {
  color: #3d6f8f;
}

body.lms-login-study .auth-portal-title,
body.lms-login-study .auth-secure-badge {
  color: #07517f;
}

body.lms-login-study .auth-heading-sub {
  color: #4d6b7d;
}

body.lms-login-corporate .auth-portal-kicker {
  color: #3d6f68;
}

body.lms-login-corporate .auth-portal-title,
body.lms-login-corporate .auth-secure-badge {
  color: #01796F;
}

body.lms-login-corporate .auth-heading-sub {
  color: #4a716c;
}

.form-label {
  margin-bottom: 4px;
  font-size: .74rem;
  font-weight: 600;
  color: #173f5d;
}

#loginForm {
  padding: 2px 16px 0;
}

.field-wrap {
  position: relative;
}

.field-wrap > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8ea9ba;
  z-index: 2;
  font-size: .9rem;
  pointer-events: none;
}

.field-wrap .form-control {
  min-height: 40px;
  padding-left: 38px;
  padding-right: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
  border: 1.5px solid #c9dce9;
  font-size: .8rem;
  color: #0d2f45;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field-wrap .form-control::placeholder {
  color: #a5bcc8;
}

.field-wrap .form-control:hover {
  border-color: #a8c8de;
}

.field-wrap .form-control:focus {
  border-color: var(--l-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17, 111, 174, .14);
  outline: none;
}

.field-wrap.has-toggle .form-control {
  padding-right: 52px;
}

.field-action {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  color: #97afbc;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}

.field-action:hover {
  color: var(--l-blue);
  background: #edf5fb;
}

.field-action:focus {
  outline: none;
}

.field-action:focus-visible {
  color: var(--l-blue);
  background: #edf5fb;
  box-shadow: 0 0 0 3px rgba(17, 111, 174, .16);
}

.field-action[aria-pressed="true"] {
  color: var(--l-blue);
}

.field-wrap .invalid-feedback {
  font-size: .74rem;
  margin-left: 2px;
}

.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
  flex-wrap: nowrap;
}

.form-check-input:checked {
  background-color: var(--l-blue);
  border-color: var(--l-blue);
}

.form-check-label,
.link-button {
  font-size: .72rem;
}

.form-check-label {
  color: #637d8c;
}

.link-button {
  padding: 0;
  color: var(--l-blue);
  background: transparent;
  font-weight: 700;
}

.link-button:hover {
  color: var(--l-blue-dark);
}

.btn-signin,
.btn-primary-cm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #116fae 0%, #0a5f96 100%);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(17, 111, 174, .28);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.btn-signin:hover,
.btn-primary-cm:hover {
  background: linear-gradient(135deg, #0d639c 0%, #07517f 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 111, 174, .32);
}

.refer-section {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px dashed rgba(105, 167, 45, .45);
  background: linear-gradient(135deg, rgba(246, 252, 233, .9) 0%, rgba(235, 247, 218, .75) 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.refer-section-copy {
  min-width: 0;
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.refer-section-copy strong {
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.2;
  color: #184215;
}

.refer-section-copy span {
  font-size: .64rem;
  line-height: 1.3;
  color: #5e8158;
  overflow-wrap: anywhere;
}

.refer-section-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  border: none;
  border-radius: 9px;
  background: var(--l-green);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(105, 167, 45, .16);
  transition: background .16s ease, transform .16s ease;
  box-sizing: border-box;
}

.refer-section-btn:hover {
  background: var(--l-green-dk);
  transform: translateY(-1px);
}

.lms-login-portal-switch {
  border-color: rgba(17, 111, 174, 0.28);
  background: linear-gradient(135deg, rgba(236, 246, 252, 0.95) 0%, rgba(230, 241, 248, 0.82) 100%);
}

body.lms-login-study .lms-login-portal-switch {
  border-color: rgba(1, 121, 111, 0.28);
  background: linear-gradient(135deg, rgba(234, 246, 244, 0.96) 0%, rgba(230, 243, 241, 0.85) 100%);
}

body.lms-login-study .lms-login-portal-switch .refer-section-copy strong {
  color: #014d47;
}

body.lms-login-study .lms-login-portal-switch .refer-section-copy span {
  color: #3d6f68;
}

body.lms-login-corporate .lms-login-portal-switch .refer-section-copy strong {
  color: #0a4a72;
}

body.lms-login-corporate .lms-login-portal-switch .refer-section-copy span {
  color: #3d6f8f;
}

.refer-section-btn.lms-login-btn-corporate {
  background: linear-gradient(135deg, #0aa99a 0%, #01796F 55%, #014d47 100%);
  box-shadow: 0 5px 14px rgba(1, 121, 111, 0.28);
  color: #fff;
}

.refer-section-btn.lms-login-btn-corporate:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #016960 55%, #013d38 100%);
  color: #fff;
}

.refer-section-btn.lms-login-btn-study {
  background: linear-gradient(135deg, #2b9ed4 0%, #116fae 55%, #07517f 100%);
  box-shadow: 0 5px 14px rgba(17, 111, 174, 0.28);
  color: #fff;
}

.refer-section-btn.lms-login-btn-study:hover {
  background: linear-gradient(135deg, #3aabd9 0%, #0f679f 55%, #06466f 100%);
  color: #fff;
}

.auth-help {
  margin: 0;
  padding: 8px 16px 10px;
  border-top: 1px solid #e8f0f5;
  background: #fafcfd;
}

.auth-help-title {
  margin: 0 0 7px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #5f7888;
}

.auth-help-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.auth-help-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #edf3f7;
}

.auth-help-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.auth-help-for {
  flex: 0 0 auto;
  font-size: .63rem;
  font-weight: 600;
  color: #8aa0ad;
}

.auth-help-list a {
  font-size: .67rem;
  font-weight: 700;
  color: var(--l-blue);
  text-align: right;
}

.auth-help-list a:hover {
  color: var(--l-blue-dark);
}

.lms-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--l-blue);
  background: #eaf5fb;
  font-size: 1.05rem;
}

.modal-header {
  padding: 20px 22px 4px;
}

.modal-body {
  padding: 6px 22px 22px !important;
}

.modal-content {
  border-radius: 20px;
}

.lms-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--l-green-dk);
  background: #eff8e9;
  font-size: 1.45rem;
}

@media (min-width: 1024px) {
  .auth-page .auth-hero,
  .auth-hero {
    height: 100%;
    max-height: 100svh;
    align-self: stretch;
  }
}

@media (max-width: 1279px) and (min-width: 1024px) {
  .auth-shell,
  .auth-page .auth-shell {
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  }

  .auth-hero {
    padding-left: clamp(24px, 3.2vw, 48px);
    padding-right: clamp(24px, 3.2vw, 48px);
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  }

  .learning-preview {
    max-width: none;
    padding: 16px;
  }

  .preview-top small,
  .preview-lms-title {
    font-size: .8rem;
    letter-spacing: .06em;
    padding: 5px 12px;
  }

  .preview-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .preview-info strong {
    font-size: 1.22rem;
  }
}

@media (min-width: 1400px) {
  .auth-hero {
    padding-left: clamp(48px, 5vw, 88px);
    padding-right: clamp(48px, 5vw, 88px);
  }

  .auth-page .hero-copy {
    justify-content: center;
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 2.2vw, 2.55rem);
  }

  .form-scroll-area .auth-panel-stack {
    max-width: 420px;
  }
}

@media (max-height: 820px) and (min-width: 1024px) {
  :root {
    --hero-section-gap: 16px;
  }

  .auth-page .auth-hero,
  .auth-hero {
    height: 100%;
    max-height: 100svh;
  }

  .auth-page .auth-legal {
    padding-top: 10px;
  }

  .auth-hero {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .auth-brand img {
    width: 200px;
    max-height: 56px;
  }

  .hero-copy h1 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
  }

  .auth-page .hero-copy {
    margin-top: clamp(12px, 2vh, 20px);
    gap: clamp(14px, 2vh, 18px);
  }

  .form-scroll-area {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@media (min-width: 1024px) and (max-height: 680px) {
  html:has(body.auth-page),
  body.auth-page {
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .auth-shell,
  .auth-page .auth-shell {
    height: auto;
    max-height: none;
    min-height: 100svh;
    overflow: visible;
  }

  .auth-page .auth-hero,
  .auth-hero,
  .auth-page .auth-form-panel {
    height: auto;
    max-height: none;
    min-height: 100svh;
    overflow: visible;
  }

  .form-scroll-area {
    overflow: visible;
    justify-content: flex-start;
  }
}

@media (max-width: 1280px) and (min-width: 1024px) {
  .auth-shell,
  .auth-page .auth-shell {
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  }

  .auth-page .hero-copy {
    max-width: none;
  }
}

/* —— Tablet & below: form-first —— */
@media (max-width: 1023.98px) {
  html:has(body.auth-page),
  html,
  body.auth-page {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    overflow-y: auto !important;
  }

  .auth-page .auth-shell,
  .auth-shell {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    grid-template-columns: 1fr;
  }

  .auth-page .auth-hero,
  .auth-hero {
    display: none !important;
    height: auto !important;
    max-height: none !important;
  }

  .auth-page .auth-form-panel,
  .auth-form-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0;
    position: relative;
    background: var(--panel-wash);
  }

  .auth-page .auth-form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 80% 45% at 50% -10%, rgba(17, 111, 174, .14) 0%, transparent 55%),
      radial-gradient(ellipse 60% 40% at 90% 100%, rgba(105, 167, 45, .1) 0%, transparent 50%);
    z-index: 0;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    padding: max(12px, env(safe-area-inset-top)) 16px 10px;
    background: rgba(255, 255, 255, .78);
    border-bottom: 1px solid rgba(17, 111, 174, .1);
    box-shadow: 0 1px 0 rgba(8, 50, 80, .03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-logo {
    width: min(180px, 52vw);
    max-height: 44px;
    display: block;
    object-fit: contain;
    filter: none;
  }

  .form-scroll-area {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 16px 16px max(28px, env(safe-area-inset-bottom));
  }

  .auth-panel-stack,
  .form-scroll-area .auth-panel-stack {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .auth-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
    overflow-y: visible;
  }

  .field-wrap {
    overflow: visible;
    max-width: 100%;
  }

  .field-action {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    right: 2px;
  }

  .field-wrap.has-toggle .form-control {
    padding-right: 56px;
  }

  .lms-login-portal-switch,
  .refer-section {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }

  .refer-section-btn {
    width: 100%;
    min-width: 0;
  }

  .lms-login-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .forgot-btn,
  .btn-signin {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .form-scroll-area {
    align-items: center;
    padding: 28px 28px max(36px, env(safe-area-inset-bottom));
  }

  .auth-panel-stack,
  .form-scroll-area .auth-panel-stack {
    max-width: 460px;
    width: 100%;
  }

  .mobile-topbar {
    padding: max(14px, env(safe-area-inset-top)) 24px 12px;
  }

  .mobile-logo {
    width: 188px;
    max-height: 48px;
  }
}

@media (max-width: 767.98px) {
  .form-scroll-area {
    padding: 14px 14px max(28px, env(safe-area-inset-bottom));
  }

  .auth-years-inline {
    padding: 12px 14px;
  }

  .auth-years-inline img {
    width: 36px;
    height: 36px;
  }

  .auth-heading {
    padding: 12px 14px 4px;
  }

  .auth-portal-title,
  .auth-secure-badge {
    font-size: clamp(1.2rem, 5.5vw, 1.45rem);
    letter-spacing: .01em;
  }

  .refer-section,
  .lms-login-portal-switch {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .refer-section-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .lms-login-actions,
  .remember-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .forgot-btn,
  .btn-signin,
  .btn-primary-cm {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }
}

@media (max-width: 575.98px) {
  .mobile-topbar {
    padding: max(10px, env(safe-area-inset-top)) 12px 8px;
  }

  .mobile-logo {
    width: min(168px, 56vw);
    max-height: 40px;
  }

  .form-scroll-area {
    padding: 12px 12px max(24px, env(safe-area-inset-bottom));
  }

  .auth-years-inline {
    padding: 10px 12px;
  }

  .auth-years-inline img {
    width: 34px;
    height: 34px;
  }

  .auth-years-inline strong {
    font-size: .72rem;
  }

  .auth-heading {
    padding: 10px 12px 4px;
  }

  .auth-portal-title,
  .auth-secure-badge {
    font-size: clamp(1.15rem, 5.8vw, 1.35rem);
    margin-bottom: 6px;
  }

  .auth-heading-sub {
    font-size: .78rem;
  }

  #loginForm {
    padding: 4px 12px 0;
  }

  .field-wrap .form-control {
    min-height: 44px;
    font-size: .84rem;
  }

  .btn-signin,
  .btn-primary-cm,
  .forgot-btn {
    min-height: 48px;
    font-size: .84rem;
  }

  .refer-section {
    padding: 12px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .remember-row,
  .lms-login-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .auth-help {
    padding: 10px 12px 12px;
  }

  .auth-help-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .refer-section-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .preview-legacy-contacts {
    flex-wrap: wrap;
  }

  .preview-legacy-chip {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 389.98px) {
  .form-scroll-area {
    padding: 10px 10px max(22px, env(safe-area-inset-bottom));
  }

  .mobile-logo {
    width: min(148px, 58vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-enter,
  .auth-card-enter,
  .learning-preview,
  .preview-legacy-block,
  .preview-trust-card,
  .preview-legacy-chip,
  .btn-signin,
  .btn-primary-cm,
  .refer-section-btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
