* {
    font-family: 'Manrope', sans-serif;
}

html {
    min-height: 100%;
    background: linear-gradient(180deg, #0a0f1c 0%, #0c1425 100%);
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    background: linear-gradient(180deg, #0a0f1c 0%, #0c1425 100%);
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: hidden;
}

/* iOS Safari safe-area fixes */
@supports (-webkit-touch-callout: none) {
    html, body {
        height: 100%;
        min-height: -webkit-fill-available;
        background: #0a0f1c !important;
    }

    body {
        padding-bottom: env(safe-area-inset-bottom);
        position: relative;
    }

    .login-wrapper {
        min-height: -webkit-fill-available;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        position: relative;
        z-index: 1;
    }

    body::before {
        display: none !important;
    }

    .login-wrapper {
        background: #0a0f1c;
    }
}

/* iOS bottom safe-area background fill */
@supports (padding: env(safe-area-inset-bottom)) {
    body::after {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: env(safe-area-inset-bottom);
        background: #0a0f1c;
        z-index: -1;
    }
}

.login-wrapper {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.login-card {
    background: #131d35;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 18px 40px rgba(2, 6, 16, 0.55);
}

.logo {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #edf2f9;
    letter-spacing: 1px;
}

.logo span {
    color: #4ade80;
}

.subtitle {
    font-size: 0.9rem;
    color: #8ea0bc;
}

.form-label {
    color: #c3d0e2;
    font-size: 0.85rem;
}

.form-control {
    background-color: #0c1425;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #edf2f9;
    padding: 12px;
    border-radius: 10px;
}

.form-control:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 0.15rem rgba(34, 197, 94, 0.2);
    background-color: #0c1425;
    color: #edf2f9;
    outline: none;
}

.btn-login {
    background: linear-gradient(135deg, #166534, #15803d);
    border: none;
    color: #ffffff;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(22, 101, 52, 0.22);
}

/* ---- Login-mascotte: voetballer die meekijkt en hooghoudt ---- */
.mascot-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.9rem;
}

#mascot {
    width: 128px;
    height: 128px;
    filter: drop-shadow(0 12px 26px rgba(34, 197, 94, 0.28));
}

#mascot .mascot-pupil {
    transition: transform 0.22s ease-out;
}

#mascot .eye-white {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.08s ease;
}

#mascot.mascot-blink .eye-white {
    transform: scaleY(0.12);
}

#mascot.mascot-blink .mascot-pupil {
    opacity: 0;
}

/* Subtiele idle-beweging: hoofd deint zachtjes mee met de ademhaling */
@media (prefers-reduced-motion: no-preference) {
    #mascotHead {
        animation: mascotIdle 3.4s ease-in-out infinite;
    }
}

@keyframes mascotIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(1.4px); }
}
