/* Reset & Basics */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #122b5a;
    padding: 1rem 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #21447c;
    height: 90px;
}

#pickems {
    color: red;
    font-family: Arial;
}

#nfl-logo img {
    max-height: 55px;
}

/* Main */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-image: url("img/paperWhite.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #e0e6f8;
    box-sizing: border-box;
}

/* Login-Form */
form.login-form {
    background-color: #122b5a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

form.login-form label {
    font-weight: 600;
    font-size: 1rem;
    color: #a9bbd9;
}

form.login-form input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background-color: #e1e1e1;
    color: #2a2a2a;
    outline-offset: 2px;
    outline-color: transparent;
    transition: outline-color 0.3s ease;
}

form.login-form input:focus {
    outline-color: #68a0ff;
    background-color: #e1e1e1;
}

form.login-form button {
    padding: 0.85rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    background-color: #d50c0a;
    color: #e0e6f8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form.login-form button:hover,
form.login-form button:focus {
    background-color: #3c6ed8;
}

/* Fehlermeldung */
#error-message {
    text-align: center;
    margin-top: 1rem;
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-word;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    color: #a9bbd9;
    background-color: #0b1a38;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #21447c;
}

footer img {
    height: 30px;
    filter: brightness(0.9);
}

/* ============================= */
/* Mobile Anpassungen */
/* ============================= */
@media (max-width: 480px) {
    body {
        padding-bottom: 60px; /* Platz für fixierten Footer */
    }

    header {
        flex-shrink: 0;
        height: 90px;
    }

    main {
        min-height: calc(100vh - 90px - 60px); /* bleibt mittig */
        padding: 1rem;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: #122b5a;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #a9bbd9;
        border-top: 1px solid #21447c;
        font-size: 0.85rem;
        z-index: 1000;
        flex-shrink: 0;
    }

    #nfl-logo img {
        max-height: 58px;
    }

    form.login-form {
        padding: 2rem;
        max-width: 80vw;
        max-height: calc(100vh - 60px - 3rem);
        overflow-y: auto;
        box-sizing: border-box;
        margin: 0;
    }

    footer img {
        height: 25px !important;
    }
}
