:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #d9e1d3;
  --paper: #f7f4ea;
  --white: #ffffff;
  --forest: #17201b;
  --green: #1f7a4d;
  --gold: #f5c542;
  --red: #d4543f;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  background: var(--gold);
  color: var(--forest);
  font-size: 22px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  border-radius: 8px;
  background: rgba(31, 122, 77, 0.12);
  color: var(--green);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, #101812 0%, rgba(16, 24, 18, 0.95) 36%, rgba(16, 24, 18, 0.58) 70%, rgba(16, 24, 18, 0.12) 100%),
    url("/assets/campus-hero.png");
  background-position: center;
  background-size: cover;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.nav {
  display: flex;
  gap: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 92px);
  grid-template-columns: 1fr 410px;
  gap: 36px;
  align-items: center;
  padding: 30px 0 80px;
}

.hero h1,
.section-title {
  margin: 20px 0 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-title {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
}

.lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--gold);
  color: var(--forest);
  font-size: 14px;
  font-weight: 950;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: var(--white);
}

.btn.dark {
  background: var(--forest);
  color: var(--white);
}

.btn.green {
  background: var(--green);
  color: var(--white);
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 22px;
}

.stat-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.stat-row,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  background: var(--white);
  padding: 14px;
}

.section {
  padding: 74px 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 20px;
}

.card h3,
.card h2 {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  background: #eef3e6;
  color: var(--green);
  font-size: 24px;
}

.dark-band {
  border-radius: 16px;
  background: var(--forest);
  color: var(--white);
  padding: 36px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfaf5;
  padding: 14px;
  font-weight: 900;
}

.login-page,
.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(31, 122, 77, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 122, 77, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr 520px;
}

.login-main {
  display: flex;
  align-items: center;
  padding: 44px;
}

.login-panel {
  display: flex;
  align-items: center;
  background: var(--forest);
  color: var(--white);
  padding: 44px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.role-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  transition: 0.2s ease;
}

.role-card:hover {
  border-color: var(--green);
  background: var(--white);
  transform: translateY(-2px);
}

.form {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  padding: 22px;
}

.form label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.form input,
.form select,
.inline-form input,
.inline-form select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--forest);
  color: var(--white);
  padding: 16px;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 26px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 850;
}

.sidebar-link.active,
.sidebar-link:hover {
  background: var(--gold);
  color: var(--forest);
}

.session-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.sidebar-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.content {
  min-width: 0;
}

.app-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 18px 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  padding: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  border-bottom: 1px solid #edf2ea;
  padding: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 8px;
  margin-bottom: 16px;
}

.quick-actions {
  display: grid;
  gap: 8px;
}

.quick-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 11px 12px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .hero-grid,
  .login-layout,
  .app-shell,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .stat-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}
