/* ===========================
   GLOBAL STYLES
=========================== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: url("background.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  color: #222;
}

h2 {
  color: #003366;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 2rem;
  letter-spacing: 1px;
}

button {
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #003366, #0066cc);
  color: #fff;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

/* Fade-in animation for containers */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Slide-up for cards */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   LOGIN PAGE
=========================== */
.login-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  width: 350px;
  padding: 40px 30px;
  text-align: center;
  margin: 120px auto;
  animation: fadeIn 0.7s ease-in-out;
}

.login-container input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}

.login-container input:focus {
  border-color: #0066cc;
  box-shadow: 0 0 6px rgba(0,102,204,0.4);
}

/* ===========================
   STUDENT DETAIL PAGE
=========================== */
.details-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  width: 85%;
  max-width: 950px;
  padding: 40px;
  text-align: center;
  margin: 80px auto;
  animation: fadeIn 0.8s ease-in-out;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.student-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.15);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideUp 0.6s ease;
}

.student-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.student-box p {
  margin: 6px 0;
  font-size: 1.05rem;
  color: #444;
}

.student-box strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #003366;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  text-align: center;
  padding: 15px 0;
  background: rgba(0, 51, 102, 0.9);
  color: #fff;
  font-size: 0.95rem;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
