/* === Background gradient === */
body {
  background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  height: 100vh;
}

/* === Login card === */
.mainBody {
  width: 100%;
  max-width: 420px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: white;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  transition: all 0.3s ease;
}

/* === Hover lift effect === */
.mainBody:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* === Fade-in animation === */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Labels === */
label {
  font-weight: 600;
  color: #333;
}

/* === Input fields === */
input[type="text"],
input[type="password"] {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  transition: all 0.2s ease-in-out;
}

input:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
  outline: none;
}

/* === Password input container === */
.password-container {
  position: relative;
}

.password-container input {
  padding-right: 45px;
}

/* === Eye icon === */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  user-select: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}

.toggle-password:hover {
  color: #007bff;
  transform: translateY(-50%) scale(1.1);
}

/* === Primary Login button === */
button.btn-primary {
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  background-color: #007bff;
  border: none;
  transition: background-color 0.3s, transform 0.2s;
}

button.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

/* === Outline Back To Home button === */
a.btn-outline-primary {
  display: block;
  padding: 11px;
  border-radius: 8px;
  font-size: 16px;
  color: #007bff;
  border: 2px solid #007bff;
  background-color: transparent;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

a.btn-outline-primary:hover {
  background-color: #e8f0fe;
  color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-1px);
  text-decoration: none;
}

/* === Alerts === */
.alert {
  border-radius: 8px;
  font-size: 0.95rem;
  padding: 10px 12px;
}