/* login.css */

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

.login-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-form {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.profile-image {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.login-form h1 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.login-form p {
  margin-bottom: 30px;
  font-size: 18px;
  color: #333;
  font-weight: 400;
  line-height: 1.2;
}

.error {
  background-color: #f8d7da;   /* hellroter Hintergrund */
  color: #721c24;              /* dunkler roter Text */
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #f5c6cb;
  margin-bottom: 30px;          /* optional, Abstand zum Formular */
  font-weight: 500;
}
.success {
  background-color: #d4edda;   /* hellroter Hintergrund */
  color: #155724;              /* dunkler roter Text */
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #c3e6cb;
  margin-bottom: 30px;          /* optional, Abstand zum Formular */
  font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: #76b852;
}

.login-form input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #76b852;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 300ms ease;
}

.login-form input[type="submit"]:hover {
  background-color: #168eea;
}

.login-form a {
  display: inline-block;
  margin-top: 15px;
  color: #76b852;
  text-decoration: none;
  font-size: 14px;
  transition: color 300ms ease;
}

.login-form a:hover {
  color: #168eea;
}

.footer-div {
  margin-top: 20px;
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

.footer-div a {
  text-decoration: none;
  color: #59626a;
  transition: color 300ms ease;
}

.footer-div a:hover {
  color: #323b43;
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
  .login-form {
    padding: 50px 50px;
    max-width: 350px;
    width: 100%;
    margin: 0 20px;
    border-radius: 8px;
  }

  .profile-image {
    width: 60px;
    margin-bottom: 15px;
  }

  .login-form h1 {
    font-size: 20px;
  }

  .login-form p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .login-form input[type="text"],
  .login-form input[type="password"],
  .login-form input[type="submit"] {
    padding: 10px;
    font-size: 14px;
  }

  .login-form a {
    font-size: 13px;
  }

  .footer-div {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
