body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('images/mainpage/it.jpg');
  margin: 0;
  color: #1f2d3d;
}

/* HEADER */
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgb(11, 4, 97);
}

.auth-logo img {
  height: 60px;
}

.back-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  padding: 9px 14px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.back-link:hover {
  background: rgba(255,255,255,0.18);
}

/* MAIN WRAP */
.auth-wrap {
  min-height: calc(100vh - 94px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* MAIN BOX */
.auth-box {
  width: 95%;
  max-width: 900px;
  background: white;
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(31, 71, 136, 0.08);
}

.auth-box h2 { margin-top: 0; color: #1f4788; }
.auth-box h3 { margin-top: 28px; color: #1f4788; }

.auth-box label {
  display: block;
  margin: 12px 0;
  font-size: 0.95rem;
}

.auth-box input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #dfe9f3;
  border-radius: 6px;
  box-sizing: border-box;
}

/* BUTTON */
.btn {
  background: #0066cc;
  color: #fff;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* STATUS */
.success { color: #1f6c1f; }
.error { color: #b00020; }
.hint { font-size: 0.95rem; color: #375a98; }

/* TABLE WRAPPER */
.students-section {
  width: 100%;
  overflow-x: auto;
}

/* TABLE */
.student-list {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.student-list th,
.student-list td {
  padding: 10px;
  border: 1px solid #dfe9f3;
  text-align: left;
  word-break: break-word;
}

.student-list th:nth-child(3),
.student-list td:nth-child(3) {
    text-align: center !important;
}

.student-list td:nth-child(3) {
    display: table-cell;
    vertical-align: middle;
}

.reset-btn {
    display: inline-block;
    margin: 0 auto;
}

/* TOP RIGHT MENU (CHANGE PASSWORD + LOGOUT) */
.top-menu {
  background: rgb(11, 4, 97);
  padding: 15px 25px;
}

.top-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.top-right a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}

.top-right a:hover {
  opacity: 0.8;
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, #1f4788 0%, #2c5aa0 100%);
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
  border-top: 3px solid #0066cc;
}

/* MOBILE FIXES */
@media (max-width: 768px) {

  .auth-box {
    padding: 18px;
  }

  .student-list {
    font-size: 11px;
  }

  .student-list th,
  .student-list td {
    padding: 6px;
    text-align: center;
  }

  .reset-btn {
    font-size: 10px;
    padding: 3px 5px;
    white-space: nowrap;
  }

  body {
    background-attachment: scroll;
  }
}