/**
 * Stalwart GCMS — AdminLite-style theme
 * Dark sidebar, royal blue accents, light content
 */

:root {
  --st-primary: #2563eb;
  --st-primary-dark: #1d4ed8;
  --st-primary-soft: #eff4ff;
  --st-sidebar-bg: #0f1419;
  --st-sidebar-elevated: #161c24;
  --st-sidebar-border: rgba(255, 255, 255, 0.07);
  --st-main-bg: #f3f6fb;
  --st-topnav-bg: rgba(255, 255, 255, 0.92);
  --st-text: #0f172a;
  --st-text-muted: #64748b;
  --st-border: #e2e8f0;
  --st-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --st-radius: 0.75rem;
  --st-radius-sm: 0.55rem;
  --font-geist-sans: "Geist", "Geist Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-geist-sans);
  color: var(--st-text);
}

/* ---------- App shell ---------- */
body.stalwart-app .content-wrapper {
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(37, 99, 235, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(14, 165, 233, 0.05), transparent 50%),
    var(--st-main-bg) !important;
  min-height: calc(100vh - 57px);
}

body.stalwart-app .content {
  padding-top: 1rem;
  padding-bottom: 1.75rem;
}

/* No "both" fill-mode: a filled opacity animation keeps a stacking context alive forever,
   which would paint the modal backdrop on top of any modal rendered inside this container. */
body.stalwart-app .stalwart-content {
  animation: stalwart-fade-in 0.35s ease backwards;
}

@keyframes stalwart-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Top navbar */
.stalwart-topnav {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--st-border) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  min-height: 57px;
}

.stalwart-menu-toggle {
  color: var(--st-text) !important;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  margin-left: 0.15rem;
}

.stalwart-menu-toggle:hover {
  background: var(--st-primary-soft);
  color: var(--st-primary) !important;
}

.stalwart-page-heading {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-left: 0.15rem;
}

.stalwart-topnav .navbar-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--st-text);
  letter-spacing: -0.02em;
}

.stalwart-topnav .navbar-subtitle {
  font-size: 0.7rem;
  color: var(--st-text-muted);
  font-weight: 500;
  margin-top: 0.12rem;
}

.stalwart-icon-btn {
  color: var(--st-text) !important;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  margin-right: 0.2rem;
}

.stalwart-icon-btn:hover {
  background: var(--st-primary-soft);
  color: var(--st-primary) !important;
}

.stalwart-notif-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--st-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.stalwart-search .form-control {
  border-radius: 50rem !important;
  min-width: 200px;
  background: #f1f5f9 !important;
  border: 0 !important;
  font-size: 0.875rem;
}

.stalwart-search .input-group-text {
  background: #f1f5f9 !important;
  border: 0 !important;
  color: var(--st-text-muted);
}

/* User block */
.stalwart-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem !important;
  border-radius: 999px;
  color: var(--st-text) !important;
  border: 1px solid transparent;
}

.stalwart-user-trigger:hover {
  background: #fff;
  border-color: var(--st-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.stalwart-user-trigger.dropdown-toggle::after {
  display: none;
}

.stalwart-user-caret {
  font-size: 0.65rem;
  color: var(--st-text-muted);
  margin-right: 0.15rem;
}

.stalwart-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--st-primary), #0ea5e9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(37, 99, 235, 0.25);
}

.stalwart-avatar-sm {
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
}

.stalwart-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stalwart-user-meta .name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--st-text);
  line-height: 1.2;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stalwart-user-meta .role {
  font-size: 0.68rem;
  color: var(--st-text-muted);
  text-transform: capitalize;
}

.stalwart-dropdown {
  min-width: 15rem;
  padding: 0.4rem;
  margin-top: 0.45rem !important;
  border-radius: var(--st-radius) !important;
}

.stalwart-dropdown-head {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.75rem 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--st-border);
}

.stalwart-dropdown-head strong {
  font-size: 0.9rem;
  color: var(--st-text);
}

.stalwart-dropdown-head span {
  font-size: 0.72rem;
  color: var(--st-text-muted);
  margin-top: 0.1rem;
}

.stalwart-dropdown .dropdown-item {
  border-radius: 0.45rem;
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
}

.stalwart-dropdown .dropdown-item:hover {
  background: var(--st-primary-soft);
  color: var(--st-primary-dark);
}

/* ---------- Sidebar ---------- */
.main-sidebar.stalwart-sidebar {
  background:
    linear-gradient(180deg, #121820 0%, var(--st-sidebar-bg) 40%, #0c1016 100%) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.25);
}

.stalwart-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem !important;
  background: linear-gradient(135deg, var(--st-primary) 0%, #1e40af 55%, #0ea5e9 160%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 57px;
  width: 250px;
  text-decoration: none !important;
}

.stalwart-brand:hover {
  text-decoration: none !important;
  color: #fff !important;
  filter: brightness(1.03);
}

/* Keep AdminLTE brand-link text white over our gradient */
.brand-link.stalwart-brand,
.brand-link.stalwart-brand:hover {
  color: #fff !important;
}

.stalwart-brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.stalwart-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.stalwart-brand-text {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.stalwart-brand-tag {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.stalwart-brand-logo {
  width: 30px;
  height: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  transform: rotate(-6deg);
  flex-shrink: 0;
}

.stalwart-brand-logo span {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 3px;
}

.stalwart-sidebar .stalwart-sidebar-inner {
  display: flex !important;
  flex-direction: column;
  min-height: calc(100vh - 57px);
  padding-bottom: 0 !important;
}

.stalwart-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0.75rem 0.35rem;
  padding: 0.75rem;
  border-radius: var(--st-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--st-sidebar-border);
}

.stalwart-sidebar-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.stalwart-sidebar-user-meta strong {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stalwart-sidebar-user-meta span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  margin-top: 0.1rem;
}

body.sidebar-collapse .stalwart-sidebar-user,
body.sidebar-collapse .stalwart-nav-label,
body.sidebar-collapse .stalwart-brand-copy {
  display: none;
}

body.sidebar-collapse .stalwart-brand {
  justify-content: center;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  width: 4.6rem;
}

body.sidebar-collapse .brand-link.stalwart-brand {
  width: 4.6rem;
}

.stalwart-sidebar-nav {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0 0.15rem 1rem;
}

.stalwart-nav-label {
  margin: 0.85rem 1rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.stalwart-sidebar .nav-sidebar > .nav-item > .nav-link {
  color: rgba(255, 255, 255, 0.72);
  border-radius: 0.55rem;
  margin: 0.12rem 0.55rem;
  padding: 0.58rem 0.8rem;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.stalwart-sidebar .nav-sidebar > .nav-item > .nav-link p {
  font-size: 0.9rem;
  font-weight: 500;
}

.stalwart-sidebar .nav-sidebar > .nav-item > .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.stalwart-sidebar .nav-sidebar > .nav-item > .nav-link.active {
  background: linear-gradient(135deg, var(--st-primary), #1d4ed8) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.stalwart-sidebar .nav-icon {
  opacity: 0.95;
  width: 1.35rem;
  text-align: center;
}

.stalwart-sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #0d0f12;
  padding: 0.45rem 0.2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

body.sidebar-collapse .stalwart-sidebar-footer {
  flex-wrap: wrap;
}

.stalwart-sidebar-footer a {
  color: rgba(255, 255, 255, 0.55);
  padding: 0.4rem 0.5rem;
  font-size: 1rem;
  border-radius: 0.25rem;
}

.stalwart-sidebar-footer a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.stalwart-footer {
  text-align: center;
  font-size: 0.8rem;
  border: 0 !important;
  background: transparent !important;
  color: var(--st-text-muted) !important;
  padding: 0.85rem 1rem !important;
}

.stalwart-footer-sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

/* ---------- Content cards / tables / forms ---------- */
.stalwart-app .card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--st-radius);
  box-shadow: var(--st-card-shadow);
  background: #fff;
}

.stalwart-app .card-header {
  background: #fff;
  border-bottom: 1px solid var(--st-border);
  font-weight: 600;
  color: var(--st-text);
  padding: 0.85rem 1.1rem;
}

.stalwart-app .card-header strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stalwart-app .card-footer {
  background: #fafbfd;
  border-top: 1px solid var(--st-border);
}

.stalwart-app .card-body {
  padding: 1.1rem;
}

.stalwart-app .table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--st-border);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--st-text-muted);
  font-weight: 700;
  background: #f8fafc;
  white-space: nowrap;
}

.stalwart-app .table-responsive {
  border-radius: 0 0 var(--st-radius) var(--st-radius);
}

.stalwart-app .table {
  margin-bottom: 0;
}

.stalwart-app .table th,
.stalwart-app .table td {
  vertical-align: middle;
  padding: 0.8rem 0.9rem;
}

.stalwart-app .table tbody tr {
  transition: background-color 0.15s ease;
}

.stalwart-app .table tbody tr:hover {
  background-color: #f8fbff;
}

.stalwart-app .table tbody tr td {
  border-top-color: #edf1f5;
}

.stalwart-app .table td {
  word-break: break-word;
  font-size: 0.9rem;
}

.stalwart-app .form-control {
  border-radius: var(--st-radius-sm);
  border-color: #d7e0ea;
  min-height: calc(1.5em + 0.85rem + 2px);
  font-size: 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.stalwart-app .form-control:focus {
  border-color: var(--st-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.stalwart-app .form-control-sm {
  min-height: calc(1.5em + 0.5rem + 2px);
  border-radius: 0.45rem;
}

.stalwart-app label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.stalwart-app .btn {
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.stalwart-app .btn-primary {
  background: linear-gradient(135deg, var(--st-primary), var(--st-primary-dark));
  border-color: var(--st-primary-dark);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.stalwart-app .btn-primary:hover,
.stalwart-app .btn-primary:focus {
  background: linear-gradient(135deg, var(--st-primary-dark), #1e3a8a);
  border-color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.stalwart-app .btn-outline-primary {
  color: var(--st-primary);
  border-color: #bfdbfe;
  background: #fff;
}

.stalwart-app .btn-outline-primary:hover {
  background: var(--st-primary-soft);
  color: var(--st-primary-dark);
  border-color: #93c5fd;
}

.stalwart-app .btn-outline-secondary {
  border-color: var(--st-border);
  color: #475569;
  background: #fff;
}

.stalwart-app .btn-outline-secondary:hover {
  background: #f8fafc;
  color: var(--st-text);
  border-color: #cbd5e1;
}

.stalwart-app .alert {
  border: 0;
  border-radius: var(--st-radius-sm);
  border-left: 4px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stalwart-app .alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left-color: #10b981;
}

.stalwart-app .alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-left-color: #ef4444;
}

.stalwart-app .alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left-color: #f59e0b;
}

.stalwart-app .alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-left-color: var(--st-primary);
}

.stalwart-app .modal-content,
.stalwart-modal {
  border: 0;
  border-radius: 0.9rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.stalwart-app .modal-header {
  border-bottom: 1px solid var(--st-border);
  background: #fafbfd;
  padding: 1rem 1.15rem;
}

.stalwart-app .modal-footer {
  border-top: 1px solid var(--st-border);
  background: #fafbfd;
}

.stalwart-app .badge-pill {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Icon-only action buttons in appointment/student action groups */
.stalwart-app .appt-action-icons .btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  margin: 0 0.1rem;
}

.stalwart-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-card-shadow);
}

.stalwart-empty-state {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--st-text-muted);
}

.stalwart-empty-state i {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
  opacity: 0.45;
}

.students-search-input {
  width: 280px;
}

/* ---------- Dashboard ---------- */
.stalwart-welcome {
  position: relative;
  overflow: hidden;
  border-radius: var(--st-radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.15rem;
  color: #fff;
  background:
    linear-gradient(125deg, #1e3a8a 0%, var(--st-primary) 48%, #0ea5e9 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.stalwart-welcome::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.stalwart-welcome-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.stalwart-welcome h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stalwart-welcome p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.5;
}

.stalwart-next-appt {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.15rem;
  border-radius: var(--st-radius);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  animation: stalwart-fade-in 0.35s ease both;
}

.stalwart-next-appt-icon {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: #059669;
  color: #fff;
  font-size: 1rem;
}

.stalwart-next-appt-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.stalwart-next-appt-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
}

.stalwart-next-appt-when {
  font-size: 1rem;
  color: var(--st-text);
}

.stalwart-next-appt-with {
  font-size: 0.82rem;
  color: var(--st-text-muted);
}

.stalwart-next-appt-btn {
  flex-shrink: 0;
  background: #059669;
  border-color: #059669;
  color: #fff !important;
  font-weight: 600;
}

.stalwart-next-appt-btn:hover {
  background: #047857;
  border-color: #047857;
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .stalwart-next-appt {
    flex-wrap: wrap;
  }

  .stalwart-next-appt-btn {
    margin-left: 3.5rem;
  }
}

.stalwart-stat {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  padding: 1.05rem 1.1rem;
  border-radius: var(--st-radius);
  background: #fff;
  border: 1px solid var(--st-border);
  box-shadow: var(--st-card-shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stalwart-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.stalwart-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-text-muted);
  margin-bottom: 0.35rem;
}

.stalwart-stat-value {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--st-text);
  line-height: 1;
}

.stalwart-stat-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.stalwart-stat-icon.is-blue {
  background: #eff6ff;
  color: #2563eb;
}

.stalwart-stat-icon.is-green {
  background: #ecfdf5;
  color: #059669;
}

.stalwart-stat-icon.is-amber {
  background: #fffbeb;
  color: #d97706;
}

.stalwart-stat-icon.is-sky {
  background: #f0f9ff;
  color: #0284c7;
}

.stalwart-stat-icon.is-teal {
  background: #f0fdfa;
  color: #0d9488;
}

.stalwart-stat-icon.is-slate {
  background: #f1f5f9;
  color: #475569;
}

.stalwart-stat-icon.is-red {
  background: #fef2f2;
  color: #dc2626;
}

.stalwart-stat-icon.is-orange {
  background: #fff7ed;
  color: #ea580c;
}

.stalwart-stat-icon.is-lime {
  background: #f7fee7;
  color: #65a30d;
}

.stalwart-stat.is-clickable {
  cursor: pointer;
}

a.stalwart-stat,
a.stalwart-stat:hover,
a.stalwart-stat:focus {
  color: inherit;
  text-decoration: none;
}

/* Tile that needs attention (e.g. pending requests waiting for approval) */
.stalwart-stat.is-alert {
  border-color: #fcd9a8;
  background: linear-gradient(180deg, #fffbf4 0%, #ffffff 70%);
}

.stalwart-stat-suffix {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--st-text-muted);
  letter-spacing: 0;
}

.stalwart-stat-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--st-text-muted);
}

.stalwart-app .list-group-item {
  border-color: var(--st-border);
  padding: 0.7rem 1.1rem;
}

.stalwart-chart-card .card-body {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.stalwart-chart-box {
  position: relative;
  width: 100%;
  height: 280px;
  max-height: 280px;
}

.stalwart-chart-box-sm {
  height: 220px;
  max-height: 220px;
}

/* Horizontal bar charts (e.g. students per course) need more vertical room */
.stalwart-chart-box-tall {
  height: 340px;
  max-height: 340px;
}

.stalwart-chart-box canvas {
  max-width: 100% !important;
}

.stalwart-chart-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stalwart-chart-card .card-header i {
  color: var(--st-primary);
  opacity: 0.85;
}

/* Legacy AdminLTE small-box polish if still used */
.stalwart-app .small-box {
  border-radius: var(--st-radius);
  box-shadow: var(--st-card-shadow);
  overflow: hidden;
}

.stalwart-app .small-box > .inner {
  padding: 1rem 1.1rem 0.85rem;
}

.stalwart-app .small-box .small-box-footer {
  display: none;
}

.stalwart-stat-card {
  border-radius: var(--st-radius);
  overflow: hidden;
  box-shadow: var(--st-card-shadow);
}

.stalwart-stat-card .inner h3 {
  font-weight: 700;
}

/* Student dashboard quick links */
.stalwart-quick-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: var(--st-radius);
  background: #fff;
  border: 1px solid var(--st-border);
  box-shadow: var(--st-card-shadow);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stalwart-quick-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  color: inherit;
}

.stalwart-quick-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.stalwart-quick-icon.is-blue {
  background: #eff6ff;
  color: #2563eb;
}

.stalwart-quick-icon.is-teal {
  background: #f0fdfa;
  color: #0d9488;
}

.stalwart-quick-icon.is-slate {
  background: #f1f5f9;
  color: #475569;
}

.stalwart-quick-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.stalwart-quick-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--st-text);
  margin-bottom: 0.15rem;
}

.stalwart-quick-copy span {
  font-size: 0.8rem;
  color: var(--st-text-muted);
  line-height: 1.4;
}

.stalwart-quick-arrow {
  color: #94a3b8;
  font-size: 0.75rem;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .stalwart-quick-card:hover {
    transform: none;
  }

  .stalwart-app .stalwart-content,
  .stalwart-app .btn,
  .stalwart-stat {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Public landing — white academic */
.landing-page {
  --ac-ink: #0c2340;
  --ac-ink-soft: #1e3a5f;
  --ac-accent: #1a4f8b;
  --ac-accent-hover: #143f6f;
  --ac-muted: #5b6b7c;
  --ac-line: #d8e0ea;
  --ac-paper: #ffffff;
  --ac-mist: #f7f9fc;
  --ac-navy: #0c2340;
  --ac-gold: #f2c230;
  --ac-gold-hover: #ffd54a;
  --ac-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ac-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ac-paper);
  color: var(--ac-ink);
  font-family: var(--ac-sans);
}

.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ac-line);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.landing-nav-brand {
  color: var(--ac-ink) !important;
  gap: 0.7rem;
  max-width: min(100%, 24rem);
}

.landing-nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.landing-nav-name {
  font-family: var(--ac-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  letter-spacing: -0.01em;
}

.landing-nav-link {
  color: var(--ac-ink-soft) !important;
  font-size: 0.92rem;
  font-weight: 500;
  margin-right: 0.35rem;
  padding: 0.4rem 0.65rem !important;
}

.landing-nav-link:hover {
  color: var(--ac-accent) !important;
}

.landing-navbar .navbar-toggler {
  border-color: var(--ac-line);
  padding: 0.35rem 0.5rem;
}

.landing-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(12, 35, 64, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.landing-btn-solid {
  background: var(--ac-accent);
  border: 1px solid var(--ac-accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.2rem;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-btn-solid:hover {
  background: var(--ac-accent-hover);
  border-color: var(--ac-accent-hover);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(26, 79, 139, 0.22);
}

.landing-btn-ghost {
  background: #fff;
  border: 1px solid var(--ac-line);
  color: var(--ac-ink) !important;
  font-weight: 600;
  border-radius: 0.2rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.landing-btn-ghost:hover {
  background: var(--ac-mist);
  border-color: #b8c6d6;
  color: var(--ac-accent) !important;
}

.landing-hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background: var(--ac-navy);
}

.landing-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: 70% 40%;
  transform: scale(1.02);
  animation: landing-hero-pan 22s ease-in-out infinite alternate;
}

.landing-hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(8, 24, 48, 0.95) 0%, rgba(12, 35, 64, 0.86) 36%, rgba(12, 35, 64, 0.45) 66%, rgba(12, 35, 64, 0.15) 100%),
    linear-gradient(0deg, rgba(8, 24, 48, 0.6) 0%, transparent 38%);
}

@media (max-width: 767.98px) {
  .landing-hero-media {
    background-position: 62% center;
  }

  .landing-hero-wash {
    background: linear-gradient(180deg, rgba(8, 24, 48, 0.9) 0%, rgba(12, 35, 64, 0.82) 60%, rgba(12, 35, 64, 0.7) 100%);
  }
}

.landing-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac-gold);
}

.landing-hero-eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--ac-gold);
}

/* Text and buttons placed over the dark building photo */
.landing-on-dark .landing-brand-name,
.landing-on-dark .landing-close-title {
  color: #fff;
}

.landing-on-dark .landing-title {
  color: rgba(255, 255, 255, 0.92);
}

.landing-on-dark .landing-lead,
.landing-on-dark .landing-close-text {
  color: rgba(255, 255, 255, 0.78);
}

.landing-on-dark .landing-hero-brand-mark {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.landing-on-dark .landing-btn-solid {
  background: var(--ac-gold);
  border-color: var(--ac-gold);
  color: var(--ac-navy) !important;
}

.landing-on-dark .landing-btn-solid:hover,
.landing-on-dark .landing-btn-solid:focus {
  background: var(--ac-gold-hover);
  border-color: var(--ac-gold-hover);
  color: var(--ac-navy) !important;
  box-shadow: 0 8px 22px rgba(242, 194, 48, 0.32);
}

.landing-on-dark .landing-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff !important;
}

.landing-on-dark .landing-btn-ghost:hover,
.landing-on-dark .landing-btn-ghost:focus {
  background: #fff;
  border-color: #fff;
  color: var(--ac-navy) !important;
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 4.75rem 15px 4.25rem;
  width: 100%;
}

.landing-hero-copy {
  max-width: 36rem;
  animation: landing-rise 0.85s ease both;
}

.landing-hero-brand-mark {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1.15rem;
  animation: landing-fade 1s ease both;
}

.landing-brand-name {
  margin: 0 0 0.85rem;
  font-family: var(--ac-serif);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ac-ink);
}

.landing-title {
  margin: 0 0 1rem;
  max-width: 28rem;
  color: var(--ac-ink-soft);
  font-family: var(--ac-sans);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 500;
  line-height: 1.45;
}

.landing-lead {
  margin: 0 0 1.75rem;
  max-width: 30rem;
  color: var(--ac-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.landing-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-stats {
  background: var(--ac-paper);
  border-top: 1px solid var(--ac-line);
  border-bottom: 1px solid var(--ac-line);
  padding: 1.35rem 0;
}

.landing-stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.65rem 1rem;
  text-align: center;
  border-left: 1px solid var(--ac-line);
  animation: landing-rise 0.75s ease both;
}

.landing-stat:first-child {
  border-left: 0;
}

.landing-stat:nth-child(2) {
  animation-delay: 0.08s;
}

.landing-stat:nth-child(3) {
  animation-delay: 0.16s;
}

.landing-stat strong {
  font-family: var(--ac-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--ac-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.landing-stat span {
  font-size: 0.82rem;
  color: var(--ac-muted);
  line-height: 1.35;
}

@media (max-width: 575.98px) {
  .landing-stats-inner {
    grid-template-columns: 1fr;
  }

  .landing-stat {
    border-left: 0;
    border-top: 1px solid var(--ac-line);
    padding: 0.9rem 0.5rem;
  }

  .landing-stat:first-child {
    border-top: 0;
  }
}

.landing-section {
  padding: 4.75rem 0;
  background: var(--ac-paper);
}

.landing-section-alt {
  background: linear-gradient(180deg, var(--ac-mist) 0%, #eef3f8 100%);
  border-top: 1px solid var(--ac-line);
  border-bottom: 1px solid var(--ac-line);
}

.landing-section-close {
  background:
    linear-gradient(180deg, rgba(8, 24, 48, 0.9) 0%, rgba(12, 35, 64, 0.84) 100%),
    url("../images/bg.jpg") center 35% / cover no-repeat;
}

.landing-section-intro {
  max-width: 38rem;
  margin-bottom: 2.75rem;
  animation: landing-rise 0.8s ease both;
}

.landing-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-accent);
}

.landing-section-title {
  margin: 0 0 0.75rem;
  font-family: var(--ac-serif);
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ac-ink);
}

.landing-section-text {
  margin: 0;
  color: var(--ac-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.landing-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ac-line);
}

@media (min-width: 768px) {
  .landing-flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

.landing-flow-item {
  display: flex;
  gap: 1rem;
  padding: 1.75rem 0 1.85rem;
  border-bottom: 1px solid var(--ac-line);
  animation: landing-rise 0.85s ease both;
}

@media (min-width: 768px) {
  .landing-flow-item {
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.85rem 1.5rem 1.85rem 0;
    border-bottom: 0;
    border-right: 1px solid var(--ac-line);
  }

  .landing-flow-item:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .landing-flow-item:first-child {
    padding-left: 0;
  }
}

.landing-flow-item:nth-child(2) {
  animation-delay: 0.1s;
}

.landing-flow-item:nth-child(3) {
  animation-delay: 0.2s;
}

.landing-flow-step {
  flex-shrink: 0;
  font-family: var(--ac-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ac-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.landing-flow-title {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ac-ink);
}

.landing-flow-text {
  margin: 0;
  color: var(--ac-muted);
  line-height: 1.55;
  font-size: 0.96rem;
}

.landing-trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ac-line);
}

@media (min-width: 768px) {
  .landing-trust-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.landing-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid #cfd9e6;
  animation: landing-rise 0.85s ease both;
}

@media (min-width: 768px) {
  .landing-trust-item {
    padding: 1.75rem 1.5rem 1.75rem 0;
    border-bottom: 0;
    border-right: 1px solid #cfd9e6;
  }

  .landing-trust-item:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

.landing-trust-item:nth-child(2) {
  animation-delay: 0.1s;
}

.landing-trust-item:nth-child(3) {
  animation-delay: 0.2s;
}

.landing-trust-item strong {
  font-family: var(--ac-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ac-ink);
}

.landing-trust-item span {
  color: var(--ac-muted);
  line-height: 1.55;
  font-size: 0.96rem;
}

.landing-close-panel {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: 0.5rem 0 0.25rem;
  animation: landing-rise 0.85s ease both;
}

.landing-close-title {
  margin: 0 0 0.75rem;
  font-family: var(--ac-serif);
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 700;
  color: var(--ac-ink);
}

.landing-close-text {
  margin: 0 0 1.5rem;
  color: var(--ac-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.landing-close-panel .landing-cta-group {
  justify-content: center;
}

.landing-footer {
  background: var(--ac-mist);
  border-top: 1px solid var(--ac-line);
  padding: 1.5rem 0;
  color: var(--ac-muted);
}

.landing-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

@media (min-width: 768px) {
  .landing-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.landing-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ac-ink);
  font-family: var(--ac-serif);
  font-weight: 600;
  font-size: 0.95rem;
}

.landing-footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.landing-footer-copy {
  font-size: 0.88rem;
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes landing-hero-pan {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.2%, -0.6%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-media,
  .landing-hero-copy,
  .landing-hero-brand-mark,
  .landing-section-intro,
  .landing-flow-item,
  .landing-trust-item,
  .landing-close-panel,
  .landing-stat {
    animation: none !important;
  }
}

/* Auth pages — white academic */
.auth-page {
  --ac-ink: #0c2340;
  --ac-ink-soft: #1e3a5f;
  --ac-accent: #1a4f8b;
  --ac-accent-hover: #143f6f;
  --ac-muted: #5b6b7c;
  --ac-line: #d8e0ea;
  --ac-paper: #ffffff;
  --ac-mist: #f7f9fc;
  --ac-navy: #0c2340;
  --ac-gold: #f2c230;
  --ac-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ac-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  position: relative;
  min-height: 100vh;
  background: var(--ac-navy);
  font-family: var(--ac-sans);
  color: var(--ac-ink);
  isolation: isolate;
}

/* Full-page campus photo behind the login / registration card */
.auth-page::before {
  content: "";
  position: fixed;
  inset: -12px;
  background:
    linear-gradient(135deg, rgba(8, 24, 48, 0.9) 0%, rgba(12, 35, 64, 0.78) 50%, rgba(26, 79, 139, 0.62) 100%),
    url("../images/bg.jpg") center / cover no-repeat;
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

.auth-page > .container > .alert {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.auth-page > .container {
  position: relative;
  z-index: 1;
}

.auth-page-logo-wrap {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-page-logo-img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .auth-page-logo-wrap {
    text-align: left;
  }
}

.auth-card {
  max-width: 420px;
}

.auth-card.auth-card-wide {
  max-width: 920px;
}

.auth-shell,
.auth-split-card {
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--ac-paper);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: landing-rise 0.85s ease both;
}

.auth-split-brand {
  position: relative;
  min-height: 100%;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(8, 24, 48, 0.9) 0%, rgba(12, 35, 64, 0.8) 55%, rgba(26, 79, 139, 0.72) 100%),
    url("../images/bg.jpg") 65% center / cover no-repeat;
}

.auth-split-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--ac-gold);
}

.auth-split-brand .auth-brand-logo {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.auth-split-brand .auth-brand-name {
  color: #fff;
}

.auth-split-brand .auth-brand-lead {
  color: rgba(255, 255, 255, 0.8);
}

.auth-split-brand .auth-brand-points li {
  color: rgba(255, 255, 255, 0.92);
}

.auth-split-brand .auth-brand-points li::before {
  background: var(--ac-gold);
}

.auth-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 2.25rem 1.75rem;
}

@media (min-width: 768px) {
  .auth-brand-panel {
    padding: 3rem 2.5rem;
    min-height: 34rem;
  }
}

.auth-brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 1.15rem;
}

.auth-brand-name {
  margin: 0 0 0.85rem;
  font-family: var(--ac-serif);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ac-ink);
}

.auth-brand-lead {
  margin: 0 0 1.35rem;
  max-width: 22rem;
  color: var(--ac-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.auth-brand-points {
  display: grid;
  gap: 0.55rem;
}

.auth-brand-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ac-ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-brand-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ac-accent);
}

.auth-form-pane {
  background: #fff;
}

.auth-form-body {
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .auth-form-body {
    padding: 2.75rem 2.5rem;
  }
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  color: var(--ac-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.auth-back-link:hover {
  color: var(--ac-accent);
  text-decoration: none;
}

.auth-form-title {
  margin: 0 0 0.35rem;
  font-family: var(--ac-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ac-ink);
}

.auth-form-subtitle {
  margin: 0 0 1.35rem;
  color: var(--ac-muted);
  font-size: 0.98rem;
}

.auth-alert {
  border: 0;
  border-radius: 0.25rem;
  font-size: 0.92rem;
}

.auth-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ac-ink-soft);
}

.auth-role-toggle {
  width: 100%;
  border: 1px solid var(--ac-line);
  border-radius: 0.2rem;
  overflow: hidden;
  background: var(--ac-mist);
}

.auth-role-btn {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--ac-muted) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Three role tabs: let "Guidance Coordinator" wrap on narrow screens instead of overflowing. */
.auth-role-toggle .auth-role-btn {
  flex: 1 1 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  line-height: 1.2;
}

.auth-role-btn + .auth-role-btn {
  border-left: 1px solid var(--ac-line) !important;
}

.auth-role-btn.is-active,
.auth-role-btn.active {
  background: var(--ac-accent) !important;
  color: #fff !important;
}

.auth-input {
  border: 1px solid var(--ac-line);
  border-radius: 0.2rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  background: #fff;
  border-color: var(--ac-accent);
  box-shadow: 0 0 0 0.2rem rgba(26, 79, 139, 0.15);
}

.auth-input-group {
  position: relative;
  display: flex;
}

.auth-input-group .form-control {
  flex: 1 1 auto;
  padding-right: 2.6rem;
}

.auth-input-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-input-toggle:hover,
.auth-input-toggle:focus {
  color: var(--ac-accent);
  outline: none;
}

.auth-submit-btn {
  margin-top: 0.35rem;
  background: var(--ac-accent);
  border: 1px solid var(--ac-accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.2rem;
  min-height: 2.85rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit-btn:hover {
  background: var(--ac-accent-hover);
  border-color: var(--ac-accent-hover);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(26, 79, 139, 0.22);
}

.auth-footer-note {
  margin-top: 1.25rem;
  color: var(--ac-muted);
  font-size: 0.9rem;
}

.auth-footer-note a {
  color: var(--ac-accent);
  font-weight: 600;
}

.auth-split-eyebrow {
  letter-spacing: 0.12em;
  color: var(--ac-accent);
  font-weight: 700;
}

.auth-split-title {
  font-family: var(--ac-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ac-ink);
}

@media (min-width: 992px) {
  .auth-split-title {
    font-size: 1.75rem;
  }
}

.auth-split-tagline {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ac-muted);
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell,
  .auth-split-card {
    animation: none !important;
  }
}

.text-pre-wrap {
  white-space: pre-wrap;
}

/* Student profile: allow form area to use full card width */
.stalwart-app .student-profile-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
}

.stalwart-app .student-profile-picture-panel {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background: #fff;
  padding: 1rem;
  box-shadow: none;
}

.stalwart-app .student-profile-wrap .card {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.stalwart-app .student-profile-wrap .card-body > .row > .col-lg-8 > .border,
.stalwart-app .student-profile-wrap .student-profile-picture-panel .border {
  border-color: #dee2e6 !important;
  border-radius: 0.25rem !important;
}

.stalwart-app .student-profile-wrap .form-group > label {
  display: block;
  margin-bottom: 0.35rem;
  color: #0d6ea8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Student profile: keep readonly/disabled fields neutral (not highlighted) */
.stalwart-app .student-profile-wrap .form-control[readonly],
.stalwart-app .student-profile-wrap .form-control:disabled {
  background-color: #fff;
  opacity: 1;
  color: #212529;
}

.stalwart-app .student-profile-wrap .form-control[readonly]:focus,
.stalwart-app .student-profile-wrap .form-control:disabled:focus {
  border-color: #ced4da;
  box-shadow: none;
}

/* Dropdown menu polish */
.stalwart-topnav .dropdown-menu {
  border: none;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border-radius: var(--st-radius);
}

/* Normalize browser autofill highlight color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #212529;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}
