/* Page background */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  background: linear-gradient(135deg, #0077b6, #00b4d8, #90e0ef);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center wrapper */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Login card */
.login-box {
  width: 350px;
  padding: 7rem;
  background: linear-gradient(145deg, #ffffff, #e6f7ff);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 123, 182, 0.2);
  text-align: center;
  animation: fadeIn 1s ease;
  position: relative;
}

.login-box h2 {
  margin-bottom: 1rem;     /* reduced space below heading */
  margin-top: -10px;       /* heading moves slightly up */
  font-size: 1.8rem;
  color: #0077b6;
  font-weight: 700;
}

/* Input fields */
.login-box input[type=text],
.login-box input[type=password] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-box input[type=text]:focus,
.login-box input[type=password]:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 6px rgba(0, 180, 216, 0.6);
  outline: none;
}

/* Submit button */
.login-box input[type=submit] {
  display: block;           /* ensures it's centered */
  margin: 15px auto 0;      /* centers horizontally */
  width: 80%;               /* slightly smaller than full width */
  padding: 12px;
  background: linear-gradient(90deg, #0077b6, #00b4d8);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-box input[type=submit]:hover {
  background: linear-gradient(90deg, #00b4d8, #0077b6);
  transform: scale(1.05);
}

/* Error message */
.error {
  margin-top: 1rem;
  color: red;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
