/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: url('background.jpg') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  background: #004225;
  color: white;
  padding: 10px 20px;
}

.site-logo {
  width: 40px;
  height: auto;
  object-fit: contain;
  margin-right: 10px;
}

.site-name {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Main Login Card */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  background: #00512e;
  color: white;
  max-width: 400px;
  width: 100%;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.school-logo {
  width: 80px;
  margin-bottom: 15px;
}

.login-card h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.login-card p {
  margin-bottom: 20px;
  color: #dcdcdc;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.login-form label {
  font-size: 0.95rem;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  background-color: #fff;
  color: #000;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* Checkbox and links */
.form-options {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #fff;
}

.form-options a {
  color: #b2ffb2;
  text-decoration: none;
  margin-left: 10px;
}

/* Button */
button[type="submit"] {
  background: #8fd19e;
  color: #003d1c;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background: #76c789;
}

/* Footer */
.site-footer {
  background: #004225;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 500px) {
  .login-card {
    padding: 20px;
  }

  .form-options {
    flex-direction: column;
    gap: 10px;
  }

  .form-options div {
    display: flex;
    gap: 10px;
  }
}
