:root {
  --brand-ink: #102a43;
  --brand-amber: #f59f00;
  --brand-sky: #5fa8d3;
  --brand-mint: #d9f0e5;
  --brand-berry: #c9495d;
  --surface: #f7fafc;
  --text: #1f2933;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(95, 168, 211, 0.35), transparent 40%),
    radial-gradient(circle at 20% 10%, rgba(245, 159, 0, 0.2), transparent 35%),
    linear-gradient(180deg, #fffef9 0%, var(--surface) 100%);
}

.admin-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #edf2f7 0%, #f8fafc 100%);
}

.login-shell {
  background:
    radial-gradient(circle at 8% 10%, rgba(245, 159, 0, 0.16), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(95, 168, 211, 0.22), transparent 36%),
    linear-gradient(180deg, #f2f7fb 0%, #f8fbff 100%);
}

.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 520px);
  border-radius: 1rem;
  border: 1px solid rgba(16, 42, 67, 0.14);
  box-shadow: 0 20px 44px rgba(16, 42, 67, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.login-logo {
  width: clamp(130px, 26vw, 190px);
  height: auto;
  object-fit: contain;
  border-radius: 0.55rem;
  border: 1px solid rgba(16, 42, 67, 0.18);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.18rem;
}

.login-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8f5b00;
}

.login-form .form-control {
  border-color: rgba(16, 42, 67, 0.25);
}

.login-form .form-control:focus {
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 0.25rem rgba(95, 168, 211, 0.2);
}

.top-nav,
.admin-nav,
.footer {
  background: linear-gradient(90deg, #0d2337 0%, #143957 100%);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(120px, 15vw, 170px);
  height: auto;
  object-fit: contain;
  display: block;
  aspect-ratio: 938 / 528;
  flex-shrink: 0;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.15rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #ffe8b3;
  color: #8f5b00;
}

.hero {
  position: relative;
}

.hero-copy {
  position: relative;
}

.hero .display-5,
.hero .lead,
.hero .hero-points,
.hero .d-flex {
  animation: fadeLift 0.8s ease both;
}

.hero .display-5 {
  max-width: 20ch;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-points span {
  background: #fff6df;
  color: #855500;
  border: 1px solid #ffd98a;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-cta-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 0.45rem;
}

.enroll-tagline {
  width: clamp(130px, 18vw, 190px);
  height: auto;
  display: block;
  object-fit: contain;
  transform: rotate(-2deg);
  transform-origin: left center;
  filter: drop-shadow(0 8px 14px rgba(8, 33, 52, 0.2));
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.student-figure {
  width: clamp(220px, 32vw, 360px);
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 20px 28px rgba(10, 38, 59, 0.24));
}

.admission-card {
  overflow: visible;
}

.admission-tile {
  background: #ffffff;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.08);
}

.admission-tile small {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #52606d;
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.12);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(201, 73, 93, 0.2) 0%, rgba(201, 73, 93, 0) 70%);
}

.hero-logo {
  width: clamp(96px, 12vw, 138px);
  height: auto;
  object-fit: contain;
  display: block;
  aspect-ratio: 938 / 528;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(16, 42, 67, 0.15);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.18rem;
}

.btn-brand {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #fff;
}

.btn-brand:hover {
  background: #0b2236;
  border-color: #0b2236;
  color: #fff;
}

.feature-card {
  height: 100%;
  border-radius: 0.8rem;
  background: #ffffff;
  border: 1px solid rgba(16, 42, 67, 0.12);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(16, 42, 67, 0.13);
}

.feature-step {
  border-top: 4px solid var(--brand-berry);
}

.level-table-shell {
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.09);
}

.progress-wrap {
  height: 1.3rem;
  background: #e7edf3;
}

.progress-wrap .progress-bar {
  background: linear-gradient(90deg, var(--brand-ink), var(--brand-sky));
  font-size: 0.75rem;
}

.payment-panel {
  background: var(--brand-mint);
  border: 1px dashed rgba(16, 42, 67, 0.35);
}

.enroll-shell {
  max-width: 1020px;
}

.enrollment-card {
  border-radius: 1rem;
  box-shadow: 0 14px 36px rgba(16, 42, 67, 0.14);
}

.enroll-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.enroll-header-logo {
  width: clamp(110px, 16vw, 150px);
  height: auto;
  object-fit: contain;
  border-radius: 0.45rem;
  border: 1px solid rgba(16, 42, 67, 0.15);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.15rem;
}

.enrollment-form .form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334e68;
  margin-bottom: 0.35rem;
}

.enrollment-form .form-control,
.enrollment-form .form-select {
  border-color: rgba(16, 42, 67, 0.2);
}

.enrollment-form .form-control:focus,
.enrollment-form .form-select:focus {
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 0.2rem rgba(95, 168, 211, 0.2);
}

.form-step-card {
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 0.9rem;
  padding: 1.05rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.payment-panel-rich {
  background: linear-gradient(180deg, #eef8f2 0%, #f8fcfa 100%);
}

.enrollment-actions {
  border-top: 1px solid rgba(16, 42, 67, 0.1);
  padding-top: 0.9rem;
}

.metric-card {
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 0.8rem;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.08);
}

.metric-card span {
  display: block;
  font-size: 0.8rem;
  color: #52606d;
}

.metric-card h2 {
  margin: 0.3rem 0 0;
}

.dashboard-hero {
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  width: clamp(58px, 7vw, 88px);
  height: auto;
  border-radius: 0.35rem;
  object-fit: contain;
  display: block;
  aspect-ratio: 938 / 528;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.12rem;
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .container.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .brand-logo {
    width: 118px;
  }

  .hero-copy {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(16, 42, 67, 0.12);
    box-shadow: 0 8px 20px rgba(16, 42, 67, 0.08);
    padding: 1rem 1rem 1rem;
    padding-right: 6.8rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.97) 100%);
  }

  .hero-copy::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: min(48vw, 185px);
    aspect-ratio: 373 / 505;
    background: url("/media/student.png") no-repeat center center / contain;
    opacity: 0.92;
    pointer-events: none;
  }

  .hero-copy > * {
    position: relative;
    z-index: 1;
  }

  .login-card {
    border-radius: 0.9rem;
  }

  .hero-cta-wrap {
    width: 100%;
  }

  .hero-cta-wrap .d-flex {
    width: 100%;
  }

  .hero-cta-wrap .btn {
    flex: 1 1 auto;
  }

  .enroll-tagline {
    width: 145px;
  }

  .hero-visual {
    display: none;
  }

  .hero .display-5 {
    max-width: none;
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .enroll-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .enroll-header-logo {
    width: 120px;
  }

  .form-step-card {
    padding: 0.85rem;
  }

  .enrollment-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .enrollment-actions > .d-flex {
    width: 100%;
  }

  .enrollment-actions .btn {
    width: 100%;
  }

  .table {
    font-size: 0.84rem;
  }
}
