body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-image: url("https://www.mk-projects.de/images/background.jpg");
    background-size: cover;
}

@media (prefers-color-scheme: dark) {
    body {
        filter: invert() hue-rotate(180deg);
        background-color: #3b3b3b;
    }
}

p.error {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: red;
}

p.info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

h1 {
    color: #3a64c0;
}

form h1 {
    margin-top: 10px;
    margin-bottom: 5px;
}

form {
    background-color: #e0e0e0;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-width: 300px;
    width: 400px;
    max-width: calc(100vw - 20px - 16px - 20px - 40px);
    z-index: 9999;
}

.spacer {
    height: 30px;
}

.spacer.s {
    height: 10px;
}

label {
    display: block;
    margin-top: 10px;
    color: #555;
    user-select: none;
}

p {
    margin-bottom: 0;
}

a {
    display: inline-block;
    margin-top: 10px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: 1px solid #b9b9b9;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #3a64c0;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

button[type="submit"]:hover {
    background-color: #355eb6;
}

@media screen and (max-width: 1000px) {
    form {
        width: calc(100vw - 60px);
        height: 100vh;
        border-radius: 0;
        border: none;
        max-width: none;
    }

    body {
        align-items: baseline;
    }

    .links {
        position: absolute;
        bottom: 30px;
        left: 30px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        text-align: center;
    }

    .spacer {
        height: 20px;
    }

    .spacer.s {
        height: 10px;
    }
}