@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");

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

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #8b0000 0%, #6a0d0d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.login-container {
  display: flex;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.login-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.login-container > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.login-container > div:first-child {
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.login-form {
  position: relative;
}

.login-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.login-form h2 {
  text-align: center;
  color: #6a0d0d;
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
}

.login-form h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #8b0000;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #6a0d0d;
  font-weight: 600;
}

.form-control {
  padding: 0.375rem 1.75rem 0.375rem 0.75rem; /* Adjust padding for dropdown */
  box-sizing: border-box; /* Ensure padding is included in the width */
  width: 100%; /* Ensure full width */
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: #6a0d0d;
  box-shadow: 0 0 0 3px rgba(138, 0, 0, 0.2);
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 39px;
  cursor: pointer;
  color: #6a0d0d;
  user-select: none;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #8b0000;
}

.btn-primary {
  background: linear-gradient(to right, #8b0000, #6a0d0d);
  border: none;
  color: white;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: linear-gradient(to right, #6a0d0d, #4f0707);
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 0.9em;
}

/* Style for error messages */
.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

.links a {
  color: #8b0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.links a:hover {
  color: #6a0d0d;
  text-decoration: underline;
}

.alert {
  margin-top: 15px;
  border-radius: 10px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container {
  animation: slideIn 0.7s ease-out;
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .login-container > div {
    padding: 30px;
  }

  .login-container img {
    max-height: 200px;
  }
}
