body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #2e1a47, firebrick);
  color: white;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

#content {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding: 2em;
  max-width: 400px;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#content h1 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1em;
  letter-spacing: 1px;
}

#content p {
  font-size: 1rem;
  margin-bottom: 1.5em;
  color: #dddddd;
}

.register-button {
  font-size: 1rem;
  margin-bottom: 1.5em;
  color: #dddddd;
}

form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #ffffff;
  text-align: left;
}

form input[type='text'],
form input[type='email'],
form input[type='password'] {
  width: 100%;
  padding: 0.8em;
  margin-bottom: 1em;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  box-sizing: border-box;
  outline: none;
  transition: background 0.3s ease;
}

form input[type='text']::placeholder,
form input[type='email']::placeholder,
form input[type='password']::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

form input:focus {
  background-color: rgba(255, 255, 255, 0.2);
}

form input[type='submit'] {
  background-color: #2e1a60;
  color: white;
  border: none;
  padding: 0.8em;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  width: 100%;
}

form input[type='submit']:hover {
  background-color: #2e1a47;
  transform: scale(1.03);
}

form input[name='zurueck'] {
  background-color: #6b7280;
  color: white;
  border: none;
  padding: 0.8em;
  font-size: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  display: block;
  width: 100%;
  text-align: center;
}

form input[name='zurueck']:hover {
  background-color: #4b5563;
}

a.button {
  background-color: #2e1a60;
  color: white;
  border: none;
  padding: 0.8em;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  text-decoration: none;
  margin-top: 10px;
}

a.button:hover {
  background-color: #2e1a47;
  transform: scale(1.03);
}

.message-box {
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.15);
  border-left: 5px solid #ffcc00;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 10px;
  font-weight: bold;
  color: #fff;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.message-box.success {
  border-color: #00cc66;
  background-color: rgba(0, 204, 102, 0.1);
}

.message-box.error {
  border-color: #ff4444;
  background-color: rgba(255, 68, 68, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
