/* Allgemeines Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    color: #e0e0e0; /* Helle Schriftfarbe */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background-color: #1e1e1e; /* Dunkles Container-Design */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    padding: 30px;
    width: 350px;
    text-align: center;
}

/* Überschriften */
.container h2 {
    color: #ffffff; /* Weiße Schrift */
    margin-bottom: 20px;
    font-size: 24px;
}

/* Formular Styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
    color: #b0b0b0; /* Dezent helles Grau */
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    background-color: #2c2c2c; /* Sehr dunkles Grau */
    color: #ffffff; /* Weiße Schrift */
}

form input:focus {
    outline: none;
    border: 1px solid #007bff; /* Blauer Fokus */
}

/* Button Styling */
button {
    background-color: #007bff; /* Flaches Blau */
    color: #ffffff; /* Weiße Schrift */
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3; /* Dunkleres Blau beim Hover */
}

/* Fehlermeldung */
.error-message {
    color: #ff6b6b; /* Flaches Rot */
    font-size: 14px;
    margin-bottom: 15px;
}

/* Erfolgsmeldung */
.success-message {
    color: #51cf66; /* Flaches Grün */
    font-size: 14px;
    margin-bottom: 15px;
}

/* Link für Anmeldung/Registrierung */
.alt-link {
    margin-top: 15px;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.alt-link:hover {
    text-decoration: underline;
}

input::-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important; /* Deckt Browser-Vorschläge ab */
    -webkit-text-fill-color: #ffffff !important; /* Textfarbe bleibt erhalten */
}

input:-webkit-autofill {
    transition: background-color 5000s ease-in-out 0s;
}

/* CSS für das Kreuz oben rechts */
.close-btn {
    position: absolute;
    top: 20px; /* Abstand vom oberen Rand */
    right: 20px; /* Abstand vom rechten Rand */
    text-decoration: none;
    font-size: 1.5rem; /* Größe des Kreuzes */
    color: #ffffff; /* Weißes Kreuz */
    background-color: #007bff; /* Blau wie der Login-Button */
    padding: 10px 15px; /* Abstand im Kreis */
    border-radius: 50%; /* Runde Form */
    text-align: center; /* Text zentrieren */
    line-height: 1; /* Vertikale Ausrichtung des Textes */
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
}

.close-btn:hover {
    transform: scale(1.1); /* Leichtes Vergrößern beim Hover */
    background-color: #0056b3; /* Dunkleres Blau beim Hover */
}

.error-messages {
    background-color: #ffdddd; /* Hellrot für Fehlerbox */
    border: 1px solid #ff5c5c; /* Roter Rand */
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    color: #d8000c; /* Dunkler Rotton für Text */
}

.error-messages ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.error-messages li {
    margin: 5px 0;
}

.success-message {
    background-color: #d4edda; /* Hellgrün für Erfolg */
    border: 1px solid #c3e6cb; /* Dunkelgrüner Rand */
    border-radius: 5px;
    color: #155724; /* Dunkelgrüner Text */
    padding: 10px;
    margin: 10px auto; /* Zentriert die Nachricht */
    font-size: 16px;
    text-align: center;
    max-width: 400px; /* Passt sich dem Container an */
}

/* Container für die Verifizierung */
.verification-container {
    max-width: 500px;
    padding: 20px;
    text-align: center;
    background: #1e1e1e; /* Dunkles Grau für den Container */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Weicher Schatten */
}

/* Erfolgsnachricht */
.success {
    color: #4caf50; /* Grün für Erfolg */
}

/* Fehlermeldung */
.error {
    color: #f44336; /* Rot für Fehler */
}

a {
    text-decoration: none;
    color: #007bff;
}