*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Background decorative shapes */
.bg-shape {
  z-index: 0;
  background: linear-gradient(#cce0ff 0%, #ffffff1a 100%);
  border-radius: 23.5rem;
  width: 450px;
  height: 400px;
  position: absolute;
  top: -120px;
  left: 10%;
  transform: translateX(-50%);
}

.bg-shape-bottom {
  z-index: 0;
  background: linear-gradient(180deg, #ffffff1a 0%, #cce0ff 100%);
  border-radius: 23.5rem;
  width: 380px;
  height: 340px;
  position: absolute;
  bottom: -100px;
  right: 2%;
  transform: translateX(30%);
}

/* Login card / container */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Logo area */
.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.login-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.login-logo-text {
  display: flex;
  flex-direction: column;
}

.login-logo-text .school-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* Form */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-field {
  width: 100%;
  padding: 15px 18px;
  background: #E2E6EA;
  border: none;
  border-radius: 10px;
  font-size: 0.97rem;
  color: #333;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.input-field::placeholder {
  color: #888;
  font-size: 0.95rem;
}

.input-field:focus {
  background: #dce8fb;
  box-shadow: 0 0 0 2px #3b5fc044;
}

.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.forgot-link {
  color: #1e3a8a;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.forgot-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 15px;
  background: #1e3a8a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  font-family: inherit;
}

.btn-login:hover {
  background: #1e40af;
  box-shadow: 0 4px 16px #1e3a8a33;
}

.btn-login:active {
  transform: scale(0.985);
}

/* Error message */
.error-msg {
  color: #dc2626;
  font-size: 0.82rem;
  text-align: center;
  min-height: 18px;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* Footer contact */
.login-footer {
  margin-top: 44px;
  font-size: 0.875rem;
  color: #555;
  text-align: center;
}

.login-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.login-footer a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Loading spinner on button */
.btn-login.loading {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 480px) {
  .login-container {
    padding: 36px 20px 30px;
    max-width: 100vw;
  }
  .bg-shape {
    width: 300px;
    height: 270px;
    left: 5%;
  }
}