/* Grundreset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body als flexbox Onepager */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    padding: 1vh 1vw;
}

/* Hauptcontainer */
main {
    background-color: #ffffff;
    padding: 3vh 3vw;
    border-radius: 1.5rem;
    box-shadow: 0 1vh 3vh rgba(0,0,0,0.1);
    width: 90vw;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Höhe dynamisch je nach Inhalt */
}

/* Logo */
.logo {
    width: 40vw;      
    max-width: 200px;
    height: auto;
    margin-bottom: 3vh;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.19);
    filter: drop-shadow(0 0.4vh 1vh rgba(43, 81, 122, 0.4));
}

/* Überschrift */
h1 {
    font-size: 4vh;  
    color: #2b517a;
    font-weight: 700;
    margin-bottom: 3vh;
}

/* Input-Container */
.input_container {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    width: 100%;
}

/* Inputs */
input[type="text"],
input[type="password"] {
    padding: 1.5vh 1vw;
    border: 0.2vh solid #ccc;
    border-radius: 1vh;
    font-size: 2vh;
    transition: border 0.3s, box-shadow 0.3s;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #2b517a;
    box-shadow: 0 0 1vh rgba(43, 81, 122, 0.3);
    outline: none;
}

/* Submit Button */
input[type="submit"] {
    padding: 1.5vh 1vw;
    border: none;
    border-radius: 1vh;
    background-color: #2b517a;
    color: white;
    font-size: 2vh;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 2vh; /* Abstand nach oben */
}

input[type="submit"]:hover {
    background-color: #1f3a5a;
    transform: translateY(-0.5vh);
}

/* Platzhalterfarbe */
::placeholder {
    color: #999;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .logo {
        width: 45vw;
        max-width: 180px;
        margin-bottom: 2.5vh;
    }

    h1 {
        font-size: 4.5vh;
        margin-bottom: 2.5vh;
    }

    input[type="text"],
    input[type="password"],
    input[type="submit"] {
        font-size: 2.2vh;
        padding: 1.8vh 1vw;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 50vw;
        max-width: 150px;
        margin-bottom: 2vh;
    }

    h1 {
        font-size: 5vh;
        margin-bottom: 2vh;
    }

    input[type="text"],
    input[type="password"],
    input[type="submit"] {
        font-size: 2.5vh;
        padding: 2vh 1vw;
    }
}

/* iPad Optimierung (~768px) */
@media (min-width: 481px) and (max-width: 1024px) {
    main {
        width: 80vw;
        padding: 3vh 3vw;
    }

    .logo {
        width: 35vw;
        max-width: 180px;
        margin-bottom: 3vh;
    }

    h1 {
        font-size: 4.5vh;
        margin-bottom: 2.5vh;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 2.2vh;
        padding: 1.5vh 1vw;
    }

    input[type="submit"] {
        font-size: 2.2vh;
        padding: 1.5vh 1vw;
        margin-top: 2vh;
    }
}
