/* =========================
   GLOBAL
========================= */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #111827;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   HEADER
========================= */

.topbar {
  display: flex;
  align-items: center;
  padding: 14px 30px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;

  height: 65px;
  box-sizing: border-box;
}

.left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.brand {
  font-weight: 520;
  font-size: 22px;
  line-height: 1;
  color: #143797;
}

/* =========================
   MAIN CONTAINER
========================= */

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

/* =========================
   CARD
========================= */

.card {
  width: 600px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* =========================
   TITLE SECTION
========================= */

.title-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.hero-img {
  width: 60px;
  height: auto;
}

.title-right h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 510;
  text-transform: none;
  letter-spacing: 0.5px;
  color: #0c214e;
}

/* =========================
   FORM
========================= */

.form-section {
  margin-top: 10px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 505;
  color: #0a1f4d;
}

input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #d6dbe4;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  transition: 0.2s;
}

input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  padding-right: 45px; /* space for the eye icon */
}

.eye-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
}

.eye-icon:hover {
  opacity: 1;
}

/* =========================
   BUTTON
========================= */

button {
  width: 100%;
  height: 38px;

  margin-top: 22px;

  border: 1px solid #013161;
  border-radius: 999px;

  background: #013161;
  color: #ffffff;

  font-size: 15px;
  font-weight: 500;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

button:hover {
  background: #0e64bb;
  border-color: #0e64bb;
}

button:active {
  transform: scale(0.98);
}

/* =========================
   USER BOX
========================= */

.user-box {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 15px 0 25px;
  padding: 12px;

  background: #f8fafc;
  border-radius: 10px;

  transition: all 0.25s ease;
}

.user-box:hover {
  background: #eff6ff;
  cursor: pointer;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.user-id {
  font-size: 13px;
  color: #111827;
}

/* =========================
   FORGOT SECTION
========================= */

.forgot-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.help-text {
  font-size: 14px;
  color: #0b2150;
  font-weight: 500;
}

.forgot-link {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 14px;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* =========================
   HELP TEXT
========================= */

.small-note {
  margin-top: 60px;
  font-size: 14px;
  color: #0d225c;
  font-weight: 510;
  line-height: 1.4;
}

.call-us {
  margin-top: 4px;
  font-size: 14px;
  color: #2563eb;
  font-weight: 500;
  cursor: pointer;
}

.call-us:hover {
  text-decoration: underline;
}

/* =========================
   PRODUCTS SECTION
========================= */

.products {
  margin-top: 45px;
  width: 656px;
  max-width: 100%;
  box-sizing: border-box;
}

.products h2 {
  font-size: 18px;
  color: #111827;
  margin: 0 0 20px 0;
  text-align: left;
}

.product-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.product-card {
  position: relative;

  width: 160px;
  height: 140px;

  padding: 0;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;

  cursor: pointer;
  transition: all 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);

  background: #eff6ff;
  border-color: #bfdbfe;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.product-card {
  padding: 0;
  overflow: hidden;
  height: 140px; /* controls tile height */
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BLUE HOVER OVERLAY */
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(191, 219, 254, 0);
  transition: 0.25s ease;

  pointer-events: none;
}

.product-card:hover::after {
  background: rgba(191, 219, 254, 0.4); /* light blue */
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;

  padding: 15px 30px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  font-size: 13px;
  color: #6b7280;
}

.footer-left {
  justify-self: start;
}

.footer-center {
  justify-self: center;
}

.footer-right {
  justify-self: end;
}

.green-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-right: 8px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .card {
    width: 100%;
    padding: 22px;
  }

  .hero-img {
    width: 90px;
  }

  .products {
    width: 100%;
  }

  .products h2 {
    text-align: center;
  }

  .product-grid {
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    width: 100%;
    max-width: 250px;
  }

  .footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* =========================
   MODAL SYSTEM
========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #ffffff;
  width: 320px;
  padding: 22px;
  border-radius: 12px;
  text-align: center;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  animation: modalPop 0.18s ease-out;
}

@keyframes modalPop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal button {
  margin-top: 15px;
  width: 100%;
  border-radius: 8px;
}

#studentEmailDisplay {
  color: #1e66ff;
  font-weight: 600;
}
