/* Hauptbereich */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Begrüßungstext */
.content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2%;
}

.content h1 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #222;
}

.content p {
    width: 75%;
    line-height: 1.6;
    color: #444;
}

/* Parallelogramm */
.parallelogram {
    width: 500px;
    height: 70%;
    padding: 60px 50px;
    background-color: orange;
    transform: skewY(-10deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.register-form {
    transform: skewY(10deg);
    display: flex;
    flex-direction: column;
    margin-bottom: 10%;
}

.register-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

.register-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.register-form input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1em;
}

.register-form button,
.register-form a{
    padding: 12px;
    text-align: center;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.register-form button:hover,
.register-form a {
    background-color: #444;
}

/* Login Link */
.login-link {
    text-decoration: underline;
    color: black;
    cursor: pointer;
    transition: color 0.3s ease;
}

.login-text {
    transform: skewY(10deg);
    margin-top: -5%;
}

.login-link:hover {
    color: white;
}

/* Echtzeit validierung */
input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="email"].valid {
    border-color: green;
}

input[type="email"].invalid {
    border-color: red;
}

#emailFeedback {
    font-size: 14px;
    margin-bottom: 5%;
    color: red;
    display: none;
}

#emailFeedback.valid {
    color: green;
    display: block;
}

#emailFeedback.invalid {
    color: red;
    display: block;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .content p {
        max-width: 90%;
    }

    .register-form {
        max-width: 90%;
    }

    .parallelogram {
        max-width: 90%;
        padding: 2rem 1.5rem;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .parallelogram {
        width: 90%;
        padding: 1.5rem 1rem;
        min-height: 200px;
    }

    .content h1 {
        font-size: 1.8rem;
    }

    .content p {
        font-size: 1rem;
        width: 100%;
    }

    .register-form h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 1.5rem;
    }

    .register-form button,
    .register-form a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .register-form input {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}