/* Basis-Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Vollflächiger Hintergrund mit Video */
body {
    height: 100vh;
    background: #121417;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Container */
.container {
    background-color: rgba(30, 30, 40, 0.85);
    padding: 2rem;
    border-radius: 1rem;
    width: 360px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 0 20px #4f88ff99;
}

/* Überschrift */
.container h2 {
    margin-bottom: 1.5rem;
}

/* Input-Felder */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    border: none;
    border-radius: 50px; /* komplett abgerundet */
    background-color: #222732;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s ease;
}

input::placeholder {
    color: #bbb;
}

input:focus {
    background-color: #3a3f4a;
    box-shadow: 0 0 6px #4f88ffcc;
}

/* Button */
button {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px;
    background-color: #4f88ff;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2171ff;
}

/* Links */
.links {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.links a {
    color: #a0c1ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.links a:hover {
    color: white;
}

/* Video-Hintergrund */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    filter: blur(5px) brightness(0.6);
}


/* Fehlermeldung */
.error-message {
    background-color: #ff4444;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    font-size: 1.2rem;
}

/* Form Group */
.form-group {
    margin-bottom: 1.2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px;
    background-color: #222732;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s ease, border 0.3s ease;
}

.input-wrapper input::placeholder {
    color: #bbb;
}

.input-wrapper input:focus {
    background-color: #3a3f4a;
    box-shadow: 0 0 6px #4f88ffcc;
}

/* Validation Icons */
.validation-icon {
    position: absolute;
    right: 15px;
    font-size: 1.3rem;
    display: none;
}

.validation-icon.success {
    color: #4caf50;
    display: block;
}

.validation-icon.error {
    color: #ff4444;
    display: block;
}

/* Validation Messages */
.validation-message {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #ff4444;
    min-height: 1.2rem;
}

.validation-message.success {
    color: #4caf50;
}

/* Input mit Fehler */
.input-wrapper input.input-error {
    background-color: rgba(255, 68, 68, 0.1);
}

.input-wrapper input.input-success {
    background-color: rgba(76, 175, 80, 0.1);
}