
* {
  font-family: Montserrat, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

.headimage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2em;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}

.headimage img {
  height: 110px;
}

h1 {
  text-align: center;
  margin-top: 0.5em;
}

.caption {
  text-align: center;
  margin: 2em 0 1em;
}

.container {
  width: 90%;
  max-width: 500px;       
  margin: 3em auto;
}

.anmeldung {
  background-color: #fff;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;               
}

label {
  text-align: left;
  margin-top: 10px;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
select#username {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
  font-family: Montserrat, sans-serif;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select#username:focus {
  border-color: #a80505;
  box-shadow: 0 0 5px rgba(168, 5, 5, 0.4);
  outline: none;
}

button[type="submit"] {
  padding: 10px 20px;
  margin-top: 15px;
  background-color: #a80505;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease-in-out;
}

button[type="submit"]:hover {
  background-color: #8a0404;
}

button[type="button"],
.back-button,
.register-button {
  padding: 10px 20px;
  margin-top: 15px;
  background-color: #555;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease-in-out;
}

button[type="button"]:hover,
.back-button:hover,
.register-button:hover {
  background-color: #333;
}

.flash-container {
  text-align: center;
  margin-top: 1em;
}

.flash {
  padding: 1em;
  margin: 1em auto;
  width: 80%;
  border-radius: 5px;
  font-weight: bold;
}

.flash.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash.errors {
  background-color: #ffe5e5;
  color: #721c24;
  border: 1px solid #721c24;
  border-radius: 5px;
  margin-bottom: 1em;
  padding: 10px;
  font-weight: bold;
}

.flash.danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.forgot-password {
  margin-top: 10px;
  text-align: right;
}

.forgot-password a {
  color: #006699;
  text-decoration: none;
  font-size: 0.9em;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.register {
  text-align: center;
  margin-top: 20px;
}

.register p {
  margin-bottom: 10px;
}

.site-footer {
  background-color: #e0e0e0;
  text-align: center;
  padding: 0.6em 0;
  font-size: 0.9em;
  color: #333;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
  z-index: 10;
  pointer-events: none;
}

.site-footer * {
  pointer-events: auto;
}