/* --- ADMISSIONS PAGE STYLES --- */
.portal-shell {
  background: linear-gradient(135deg, var(--blue-dk), var(--blue));
  color: var(--white);
  padding: 1.1rem 0;
  border-bottom: 3px solid var(--red);
}

.portal-shell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-brand img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.portal-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.portal-brand h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  margin: 0;
}

.portal-brand p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.portal-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.portal-chip:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.adm-page-hero {
  min-height: 35vh;
  background: var(--blue);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 5rem 0 3rem;
}

.adm-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(160deg, var(--red-dk), var(--red));
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.adm-page-hero .hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.adm-page-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  font-weight: 900;
  position: relative;
  z-index: 2;
}

.adm-page-hero h1 em {
  color: var(--accent-soft);
  font-style: normal;
}

.adm-page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  max-width: 550px;
  position: relative;
  z-index: 2;
}

.adm-page-hero .breadcrumb-nav {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.adm-page-hero .breadcrumb-nav a {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.adm-page-hero .breadcrumb-nav span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0 0.5rem;
}

.adm-page-hero .breadcrumb-nav .current {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

/* --- AUTH CONTAINER --- */
.auth-section {
  padding: 4rem 0;
  background: var(--off);
  min-height: 60vh;
}

.auth-container {
  max-width: 960px;
  margin: 0 auto;
}

/* --- TAB NAVIGATION --- */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 1.1rem 1.5rem;
  font-family: 'Merriweather', serif;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  background: var(--white);
  color: var(--muted);
  border-bottom: 3px solid var(--border);
}

.auth-tab:hover {
  color: var(--blue);
  background: rgba(46, 120, 184, 0.04);
}

.auth-tab.active {
  color: var(--blue);
  background: var(--white);
  border-bottom: 3px solid var(--red);
}

/* --- AUTH PANELS --- */
.auth-panel {
  display: none;
  background: var(--white);
  border-radius: 0 0 14px 14px;
  border: 1.5px solid var(--border);
  border-top: none;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.auth-panel.active {
  display: block;
  animation: fadeUp 0.4s ease forwards;
}

/* --- LOGIN FORM --- */
.login-wrapper {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.login-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin: 0 auto 1.5rem;
}

.login-wrapper h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.login-wrapper .login-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.login-wrapper .form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
}

.input-icon-wrap .form-control {
  padding-left: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}

.password-toggle:hover {
  color: var(--blue);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.login-options a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.login-options a:hover {
  text-decoration: underline;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  cursor: pointer;
}

.btn-login {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: var(--white);
  border: none;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 120, 184, 0.34);
}

.login-footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.login-footer a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* --- APPLICATION FORM --- */
.app-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.app-form-header .app-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-dk), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 1rem;
}

.app-form-header h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.app-form-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- FORM STEPPER --- */
.stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s;
  flex-shrink: 0;
}

.stepper-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.3s;
}

.stepper-line {
  width: 50px;
  height: 3px;
  background: var(--border);
  margin: 0 0.75rem;
  border-radius: 3px;
  transition: background 0.3s;
}

.stepper-step.active .stepper-num {
  background: var(--blue);
  color: var(--white);
}

.stepper-step.active .stepper-label {
  color: var(--blue);
}

.stepper-step.completed .stepper-num {
  background: var(--red);
  color: var(--white);
}

.stepper-step.completed .stepper-label {
  color: var(--red);
}

.stepper-line.active {
  background: var(--blue);
}

.stepper-line.completed {
  background: var(--red);
}

/* --- FORM STEPS --- */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeUp 0.4s ease forwards;
}

.form-step-title {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-step-title i {
  color: var(--red);
}

.form-step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.form-section-label {
  font-family: 'Merriweather', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-label i {
  color: var(--red);
}

/* --- FORM NAVIGATION --- */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--border);
}

.btn-step-prev {
  background: transparent;
  color: var(--muted);
  border: 2px solid var(--border);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s;
}

.btn-step-prev:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-step-next {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s;
}

.btn-step-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 120, 184, 0.3);
}

.btn-submit-app {
  background: linear-gradient(135deg, var(--red-dk), var(--red));
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s;
}

.btn-submit-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(185, 101, 56, 0.34);
}

/* --- FILE UPLOAD --- */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--off);
}

.file-upload-area:hover {
  border-color: var(--blue);
  background: rgba(46, 120, 184, 0.04);
}

.file-upload-area i {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.file-upload-area p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.file-upload-area .file-label {
  font-weight: 600;
  color: var(--blue);
}

/* --- REVIEW SUMMARY --- */
.review-card {
  background: var(--off);
  border-radius: 12px;
  border: 1.5px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.review-card h6 {
  font-family: 'Merriweather', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-card h6 i {
  color: var(--red);
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  color: var(--muted);
  font-weight: 500;
}

.review-value {
  color: var(--text);
  font-weight: 600;
}

/* --- SUCCESS STATE --- */
.success-state {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.success-state h3 {
  font-family: 'Merriweather', serif;
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.success-state p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 450px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.ref-number {
  display: inline-block;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.generated-credentials {
  max-width: 420px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(180deg, rgba(46, 120, 184, 0.08), rgba(217, 122, 69, 0.08));
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-align: left;
}

.generated-credentials-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Merriweather', serif;
  font-size: 0.92rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.generated-credentials-title i {
  color: var(--red);
}

.generated-credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(46, 120, 184, 0.12);
  font-size: 0.85rem;
}

.generated-credential-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.generated-credential-row span {
  color: var(--muted);
  font-weight: 600;
}

.generated-credential-row strong {
  color: var(--text);
  font-family: 'Source Sans 3', monospace;
  font-size: 0.88rem;
}

/* --- INFO SIDEBAR --- */
#infoSidebarCol {
  align-self: flex-start;
}

.info-sidebar {
  position: sticky;
  top: 24px;
}

.info-card {
  background: var(--white);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.info-card h6 {
  font-family: 'Merriweather', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card h6 i {
  color: var(--red);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.info-item i {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(46, 120, 184, 0.06);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s;
  margin-bottom: 0.5rem;
}

.help-link:hover {
  border-color: var(--blue);
  background: rgba(46, 120, 184, 0.1);
  transform: translateX(4px);
}

.help-link:last-child {
  margin-bottom: 0;
}

/* --- DEMO CREDENTIALS NOTICE --- */
.demo-notice {
  background: rgba(46, 120, 184, 0.06);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.demo-notice strong {
  color: var(--blue);
}

.demo-hint {
  margin-top: 0.65rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.demo-notice .demo-cred {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  font-family: 'Source Sans 3', monospace;
  font-size: 0.8rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.demo-cred span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-cred span i {
  color: var(--red);
  font-size: 0.75rem;
}

.portal-footer {
  background: var(--blue-dk);
  padding: 1rem 0;
}

.portal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
}

.portal-footer a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 700;
}

.portal-footer a:hover {
  color: var(--white);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .portal-shell {
    padding: 1rem 0;
  }

  .portal-shell-inner,
  .portal-brand,
  .portal-meta,
  .portal-footer-inner {
    justify-content: center;
    text-align: center;
  }

  .auth-panel {
    padding: 1.5rem;
  }

  .stepper-label {
    display: none;
  }

  .stepper-line {
    width: 30px;
  }

  .auth-tab {
    font-size: 0.8rem;
    padding: 0.9rem 0.75rem;
  }

  .form-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-nav button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .adm-page-hero {
    padding: 4rem 0 2rem;
  }

  .adm-page-hero::before {
    width: 0;
  }

  .generated-credential-row {
    flex-direction: column;
    align-items: flex-start;
  }
}