:root {
  /* BRAND COLORS */
  --bg-main: #0b1623;          /* deep navy */
  --bg-secondary: #0f2238;     /* section navy */
  
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);

  --primary: #1fb6ff;          /* cyan blue (LOGIN, CTA) */
  --primary-hover: #0fa3eb;

  --accent-yellow: #f6c76b;    /* premium pill */
  
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
}


* {
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);

  background:
    radial-gradient(
      circle at top,
      #132c46 0%,
      var(--bg-main) 55%
    );
}


/* WATERMARK */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/logo.png") center/55vw no-repeat;
  opacity: 0.04;
  filter: blur(1px);
  pointer-events: none;
}


/* GLASS */
.glass {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.04)
  );
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
}


/* LOGIN PAGE */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 380px;
  padding: 40px;
  text-align: center;
}

.auth-logo {
  width: 60px;
  margin-bottom: 10px;
}

.auth-card h1 {
  margin-bottom: 6px;
}

.subtitle {
  opacity: 0.7;
  margin-bottom: 24px;
}

.auth-card input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  margin-bottom: 14px;
  font-size: 15px;
}

.full {
  width: 100%;
}

.muted {
  opacity: 0.6;
  margin-top: 18px;
}
/* Muted / secondary text */
.muted,
.subtitle,
.overlay p,
.student-name {
  color: var(--text-muted);
}

/* TOP BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;

  /* TRANSPARENT GLASS */
  background: linear-gradient(
    180deg,
    rgba(11, 22, 35, 0.85),
    rgba(11, 22, 35, 0.55)
  );

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
}

.brand img {
  width: 34px;
}

/* BRAND (same as main site) */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 44px;              /* icon size like main site */
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Brand text – EXACT main site colors */
.brand-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #e9f1f8;   /* not pure white */
}

.gold {
  color: #f4c76a;   /* warm gold like main site */
}

.brand-sub {
  font-size: 13px;
  font-weight: 400;
  color: #9fb3c8;   /* blue-grey (THIS is the key) */
}

.brand-tagline {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}


/* DASHBOARD */
.dashboard {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* WIDGETS */
.widget {
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s;
}

.widget img {
  width: 64px;
  margin-bottom: 16px;
}

.widget:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}











/* BUTTONS */
.glass-btn {
  background: var(--primary);
  border: none;
  color: #00121f;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.glass-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.glass-btn.small {
  padding: 8px 14px;
  font-size: 14px;
}


.glass-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.small {
  padding: 8px 14px;
  font-size: 14px;
}

/* IMAGE GRID */
.image-grid {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* IMAGE CARD */
.image-card {
  position: relative;
  height: 320px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.2)
  );
}

.image-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(31, 182, 255, 0.35);
}


/* OVERLAY CONTENT */
.overlay {
  position: absolute;
  bottom: 0;
  padding: 26px;
  z-index: 2;
}

.overlay h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.overlay p {
  opacity: 0.85;
  margin-bottom: 14px;
}
.premium-pill {
  display: inline-block;
  background: var(--accent-yellow);
  color: #1a1405;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
/* GLOW EFFECT ON IMAGE CARDS */
.image-card {
  position: relative;
  
}

/* glow layer */
.image-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: radial-gradient(
    circle at top,
    rgba(31, 182, 255, 0.6),
    rgba(31, 182, 255, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

/* hover glow */
.image-card:hover::after {
  opacity: 1;
}
/* Image zoom & cinematic focus */
.image-card {
  overflow: hidden;
}

.image-card {
  background-size: cover;
  background-position: center;
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.6s ease;
  z-index: 0;
}

.image-card:hover::before {
  transform: scale(1.08);
}

/* ensure overlay stays above */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 26px;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* CTA glow */
.image-card .glass-btn {
  box-shadow: 0 0 0 rgba(31,182,255,0);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.image-card:hover .glass-btn {
  box-shadow: 0 0 18px rgba(31, 182, 255, 0.65);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 25, 0.55);
  backdrop-filter: blur(18px);
  z-index: 2000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.show {
  opacity: 1;
  pointer-events: auto;
}
.menu-content {
  position: absolute;
  right: 0;
  top: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;

  background: linear-gradient(
    180deg,
    rgba(15, 31, 51, 0.95),
    rgba(11, 22, 35, 0.98)
  );

  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}
.menu-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.menu-item.logout {
  background: var(--primary);
  color: #00121f;
  font-weight: 600;
}

/* Desktop */
.logout-btn {
  display: inline-block;
}

/* Mobile */
@media (max-width: 768px) {
  .logout-btn {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}


.portal-btn {
  background: linear-gradient(135deg, #2bb6ff, #1e90ff);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(255, 200, 0, 0);
}

/* 🔥 HOVER GLOW EFFECT */
.portal-btn:hover {
  background: linear-gradient(135deg, #ffd36a, #ffb703);
  color: #000;
  box-shadow:
    0 0 10px rgba(255, 200, 0, 0.6),
    0 0 25px rgba(255, 200, 0, 0.4),
    0 0 45px rgba(255, 200, 0, 0.25);
  transform: translateY(-2px);
}

/* Optional click feel */
.portal-btn:active {
  transform: scale(0.97);
}



.welcome-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.welcome-box img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 100, 0.6);
}

.welcome {
  font-size: 12px;
  opacity: 0.7;
}

.student-name {
  font-size: 16px;
  font-weight: 600;
}




.welcome-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin: 20px;
  border-radius: 18px;

  background: linear-gradient(
    135deg,
    rgba(255, 215, 120, 0.15),
    rgba(0, 140, 255, 0.15)
  );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.18);

  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Avatar */
.avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ffd36a, #2bbcff);
  box-shadow: 0 0 18px rgba(255,211,106,0.45);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0b1d2c;
}

/* Text */
.welcome-small {
  font-size: 13px;
  opacity: 0.7;
}

.welcome-text h2 {
  margin: 2px 0;
  font-size: 20px;
  font-weight: 700;
}

.welcome-sub {
  font-size: 13px;
  opacity: 0.6;
}
