:root {
  --student-navy: #0d2d4d;
  --student-gold: #d2a756;
  --student-text: #203047;
  --student-muted: #687789;
  --student-line: #e2eaf3;
  --student-bg: #f5f7fb;
}

* { box-sizing: border-box; }
body.student-body {
  margin: 0;
  min-height: 100vh;
  background: var(--student-bg);
  color: var(--student-text);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }

.student-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #f7f9fc, #e9eef6);
}
.student-login-card {
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid var(--student-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 48, 82, .14);
}
.student-brand { text-align: center; }
.student-logo-badge {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  padding: 11px;
  border: 1px solid rgba(210, 167, 86, .45);
  border-radius: 24px;
  background: linear-gradient(135deg, #071d33, #0d2d4d 48%, #1d5b83);
  box-shadow: 0 22px 48px rgba(13, 45, 77, .25);
}
.student-logo-badge.small { width: 48px; height: 48px; margin: 0; padding: 7px; border-radius: 16px; }
.student-logo-badge img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)); }
.student-brand span,
.student-brand-inline span {
  color: var(--student-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.student-brand h1 { margin: 8px 0 6px; font-size: 28px; }
.student-brand p { margin: 0 0 22px; color: var(--student-muted); font-size: 13px; line-height: 1.55; }
.student-login-form { display: grid; gap: 14px; }
.student-login-form label { display: grid; gap: 6px; }
.student-login-form label span { color: #6f7e91; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.student-login-form input {
  width: 100%;
  border: 1px solid #d7e1ed;
  border-radius: 13px;
  background: #fff;
  color: var(--student-text);
  font-size: 14px;
  outline: 0;
  padding: 12px;
}
.student-login-form input:focus { border-color: rgba(13,45,77,.42); box-shadow: 0 0 0 4px rgba(13,45,77,.08); }
.student-login-form button {
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--student-navy), #17466f);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 12px 14px;
  cursor: pointer;
}
.student-alert { margin-bottom: 14px; padding: 11px 13px; border-radius: 12px; background: #fff1ee; color: #9b3424; font-size: 13px; font-weight: 800; }
.student-forgot-link {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  color: var(--student-navy);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f4f8fc;
  transition: background .15s ease;
}
.student-forgot-link:hover {
  background: #e8eff8;
}
.student-success {
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #e8f8ef;
  color: #1d6b3d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  border: 1px solid #c3e6d2;
}
.student-public-link { display: flex; justify-content: center; margin-top: 16px; color: var(--student-navy); font-size: 12px; font-weight: 900; text-decoration: none; }

.student-portal { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 34px; }
.student-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 18px;
}
.student-brand-inline { display: flex; align-items: center; gap: 12px; }
.student-brand-inline strong { display: block; margin-top: 2px; font-size: 18px; }
.student-topbar nav { display: flex; gap: 10px; }
.student-topbar nav a { padding: 9px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--student-line); text-decoration: none; font-size: 12px; font-weight: 900; }
.student-hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, #0d2d4d, #1b5a83);
  color: #fff;
  box-shadow: 0 24px 60px rgba(13,45,77,.22);
}
.student-hero span { color: #f3d99b; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.student-hero h1 { margin: 8px 0; font-size: 32px; }
.student-hero p { margin: 0; max-width: 620px; color: rgba(255,255,255,.78); line-height: 1.55; }
.student-status-card { padding: 18px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.student-status-card strong { display: block; margin: 7px 0; font-size: 26px; }
.student-status-card small { color: rgba(255,255,255,.78); }
.student-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.student-stats article,
.student-card {
  border: 1px solid var(--student-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22,48,82,.08);
}
.student-stats article { padding: 17px; }
.student-stats span { display: block; color: var(--student-muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.student-stats strong { display: block; margin-top: 8px; font-size: 28px; }
.student-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.student-grid.lower { grid-template-columns: 1.4fr .8fr; margin-top: 16px; }
.student-card { padding: 18px; }
.student-card h2 { margin: 0 0 13px; font-size: 18px; }
.student-list { display: grid; gap: 10px; }
.student-list div { padding: 12px; border-radius: 14px; background: #f7fafc; border: 1px solid #e7edf5; }
.student-list strong { display: block; font-size: 13.5px; }
.student-list span,
.student-empty { color: var(--student-muted); font-size: 13px; line-height: 1.45; }
.student-profile-list { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 13px; }
.student-profile-list span { color: var(--student-muted); font-weight: 900; }
.student-table-wrap { overflow-x: auto; }
.student-table-wrap table { width: 100%; border-collapse: collapse; }
.student-table-wrap th,
.student-table-wrap td { padding: 11px 9px; border-bottom: 1px solid var(--student-line); text-align: left; font-size: 13px; }
.student-table-wrap th { color: var(--student-muted); font-size: 10.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* Student notification bell */
.student-notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--student-line) !important;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.student-notif-bell:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13,45,77,.10);
}
.student-bell-icon {
  font-size: 17px;
  line-height: 1;
}
.student-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #d13b2a;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 6px rgba(209,59,42,.3);
  animation: student-bell-pop .3s ease;
}
@keyframes student-bell-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Student notification dropdown */
.student-notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: min(380px, calc(100vw - 40px));
  border: 1px solid var(--student-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(13,28,45,.16);
  overflow: hidden;
  animation: student-dropdown-in .2s ease;
}
@keyframes student-dropdown-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.student-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--student-line);
  background: #f8fafc;
}
.student-notif-header strong {
  color: var(--student-navy);
  font-size: 14px;
  font-weight: 900;
}
.student-notif-count-label {
  color: var(--student-muted);
  font-size: 11px;
  font-weight: 800;
}
.student-notif-list {
  max-height: 340px;
  overflow-y: auto;
}
.student-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f8;
  transition: background .15s ease;
}
.student-notif-item:last-child {
  border-bottom: 0;
}
.student-notif-item:hover {
  background: #f8fafd;
}
.student-notif-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
}
.student-notif-body {
  flex: 1;
  min-width: 0;
}
.student-notif-body p {
  margin: 0;
  color: var(--student-text);
  font-size: 12.5px;
  line-height: 1.4;
}
.student-notif-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--student-navy);
  color: #fff !important;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.student-notif-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--student-muted);
  font-size: 13px;
}

/* Student alerts section on the page */
.student-alerts-section {
  margin: 18px 0;
}
.student-alerts-header {
  margin-bottom: 12px;
}
.student-alerts-header .cec-section-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--student-gold);
  margin-bottom: 4px;
}
.student-alerts-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--student-text);
}
.student-alerts-list {
  display: grid;
  gap: 10px;
}
.student-alert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e7edf5;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22,48,82,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.student-alert-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(22,48,82,.10);
}
.student-alert-card.vencido {
  border-left: 4px solid #c0392b;
  background: linear-gradient(135deg, #fff5f3, #fff);
}
.student-alert-card.proximo {
  border-left: 4px solid #e67e22;
  background: linear-gradient(135deg, #fffaf0, #fff);
}
.student-alert-card.multa {
  border-left: 4px solid #8e44ad;
  background: linear-gradient(135deg, #f8f0fc, #fff);
}
.student-alert-icon {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
}
.student-alert-content {
  flex: 1;
  min-width: 0;
}
.student-alert-content p {
  margin: 0;
  color: var(--student-text);
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 700;
}
.student-alert-action {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--student-navy);
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.student-alert-action:hover {
  background: #1a4f76;
}

@media (max-width: 820px) {
  .student-hero,
  .student-grid,
  .student-grid.lower { grid-template-columns: 1fr; }
  .student-stats { grid-template-columns: repeat(2, 1fr); }
  .student-topbar { align-items: flex-start; flex-direction: column; }
  .student-alert-card { flex-wrap: wrap; gap: 8px; }
  .student-alert-action { width: 100%; text-align: center; }
}
@media (max-width: 560px) {
  .student-portal { width: min(100% - 24px, 1180px); }
  .student-hero { padding: 22px; }
  .student-hero h1 { font-size: 25px; }
  .student-stats { grid-template-columns: 1fr; }
  .student-topbar nav { gap: 6px; flex-wrap: wrap; }
  .student-notif-bell { width: 36px; height: 36px; }
}
