@import url("../common.css");

/* Allgemeine Stileinstellungen */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

/* Container für den Hauptinhalt */
#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);
}

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

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

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

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

form input[type='text'],
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;
}

/* Stil für die Buttons*/
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);
}

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: 22px;
  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);
  }
}
