html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* GEEN verticale scrollbalk meer */
body {
    font-family: Arial, sans-serif;
    background: url('../background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;      /* niet meer in het midden, maar bovenaan */
    min-height: 100vh;
    position: relative;
    font-size: 14px;              /* alles wat kleiner */
    overflow-y: hidden;           /* verbergt de verticale scrollbalk */
    padding: 0 10px;              /* alleen horizontale ruimte, geen verticale padding */
}

.container {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 320px;
    max-width: 90vw;
    margin-top: 80px;             /* container wat lager van boven -> optisch “hoger” op scherm dan perfect gecentreerd */
    scale: 1.1;
}


.password-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    width: 100%;
    padding-right: 40px; /* ruimte voor het oogje */
    box-sizing: border-box;
}

.password-container .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}



h2 {
    text-align: center;
    font-size: 1.2rem;
}

form {
    margin-top: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
}

input[type="submit"] {
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

p.error {
    color: red;
    text-align: center;
    font-size: 0.9rem;
}

.links {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.links a {
    text-decoration: none;
    color: #007bff;
    margin: 0 5px;
}

.links a:hover {
    text-decoration: underline;
}

.corner-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 250px;
    height: 125px;
    object-fit: cover;
    border-radius: 15px;
}

/* ---------- Chromebook / kleinere laptops ---------- */
@media (max-width: 1024px) {
    .container {
        padding: 25px;
        width: 300px;
        margin-top: 30px;
    }

    .corner-image {
        width: 150px;
        height: 75px;
    }
}

/* ---------- Tablets / grotere smartphones ---------- */
@media (max-width: 768px) {
    body {
        padding: 0 10px;          /* nog steeds geen verticale padding */
    }

    .container {
        width: 100%;
        max-width: 380px;
        padding: 20px;
        margin-top: 25px;
    }

    h2 {
        font-size: 1.1rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 7px;
        font-size: 0.85rem;
    }

    input[type="submit"] {
        padding: 8px;
        font-size: 0.9rem;
    }

    .corner-image {
        display: none;            /* op echt kleine schermen: extra ruimte winnen */
    }
}
