*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Inter', var(--lib-font-sans, sans-serif), -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0F172A;
}

body.login-page-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 26%, #6366F1 54%, #C7D2FE 84%, #EEF2FF 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.75rem 1.25rem 1.25rem;
}

.login-bg-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.login-bg-waves svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46%;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.login-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

/* ── Left Showcase Column ────────────────────────────────────────── */
.login-showcase {
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
}

.login-brand-hero {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: fit-content;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.18s ease;
}

.login-brand-hero:hover {
  transform: translateY(-1px);
}

.login-brand-hero img {
  height: 36px;
  width: auto;
  display: block;
}

.login-hero-heading {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.95rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0 0;
  color: #FFFFFF;
}

.login-hero-heading .accent-gold {
  color: #FDE047;
}

.login-hero-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 450px;
}

/* Feature list + cutout student composition so text sits around the student */
.login-showcase-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 310px;
  margin-top: 0.25rem;
}

.login-features-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  max-width: 255px;
  padding-bottom: 1.25rem;
}

.login-feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.login-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.login-feature-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.login-feature-desc {
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 2px;
}

.login-cutout-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-left: -28px;
  margin-right: -12px;
  margin-bottom: -18px;
  pointer-events: none;
}

.login-cutout-img {
  width: 100%;
  max-width: 345px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.22));
  /* Softly feather bottom edge so it blends into the lavender wave */
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}

.login-spark-rays {
  position: absolute;
  top: 6px;
  right: 18px;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

/* ── Right White Auth Card ───────────────────────────────────────── */
.login-card,
.auth-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 2.15rem 2.15rem 1.85rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.92);
  width: 100%;
  position: relative;
  z-index: 2;
}

.login-card-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.login-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0 0 0.35rem 0;
}

.login-card-title span {
  color: #2563EB;
}

.login-card-subtitle {
  font-size: 0.86rem;
  color: #64748B;
  margin: 0;
}

.login-submit-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563EB 0%, #6D28D9 100%);
  color: #FFFFFF;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.login-footer-links {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: #475569;
  font-weight: 500;
  max-width: 100%;
}

.login-footer-links a {
  color: #334155;
  text-decoration: none;
}

.login-footer-links a:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* ── Responsive Mobile Layout ────────────────────────────────────── */
@media (max-width: 920px) {
  body.login-page-body {
    padding: 1.25rem 0.9rem;
  }
  .login-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .login-showcase {
    text-align: center;
    align-items: center;
  }
  .login-showcase-stage {
    display: none;
  }
  .login-card,
  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }
}
