/* app/static/login.css */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  flex-direction: column;
  display: flex;
  background-color: #7a0019; /* maroon */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: #ffffff;
  gap: 30px;
  align-items: center;
}

.login-image img {
  width: 150px;
  height: auto;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.login-form {
  display: flex;
  flex-direction: column;
  width: 250px;
}

.login-form h2 {
  margin-bottom: 20px;
  color: #ffffff;
}

.login-form label {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 20px;
}

.login-form input {
  padding: 10px;
  border: none;
  border-radius: 6px;
  outline: none;
}

.login-form button {
  margin-top: 20px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #ffffff;
  color: #7a0019;
  font-weight: bold;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #f2f2f2;
}

.messages {
  margin-bottom: 15px;
}

.success {
  color: green;
  font-weight: bold;
}

.error {
  color: white;
  background-color: darkred;
  padding: 8px;
  border-radius: 5px;
}

.login-form select {
  padding: 10px;
  border: none;
  border-radius: 6px;
  outline: none;
  margin-top: 5px;
}

.btn {
  display: block;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  background-color: white;
  color: #7a0019;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
}

.btn:hover {
  background-color: #f2f2f2;
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn.secondary:hover {
  background-color: white;
  color: #7a0019;
}

.error-box {
  background-color: darkred;
  color: white;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  text-align: center;
}

.login-form input,
.login-form select {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: none;
  outline: none;
}

.back-btn {
  display: inline-block;
  margin-bottom: 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.back-btn:hover {
  text-decoration: underline;
}