html, body {
    height: 100vh;
    overflow: hidden;
}

/* Voor schermen waar de content niet op past (Mobiel & kleine laptops) */
@media screen and (max-width: 1024px), screen and (max-height: 700px) {
    html, body {
        height: auto;
        overflow-y: auto !important; /* Forceer scrollen als het scherm te klein is */
    }

    .login-page-container, .register-page-container {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }
}

.login-page-container{
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("../public/pageBackground.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

.login-title{
    color: #555555;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 3.4rem;
}

.login-info-container{
    background-image: url("../public/InlogRegistratieAchtergrond.png");
    background-size: cover;
    background-position: center;
    min-height: 640px;
    max-height: 640px;
    width: 33.3%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-title{
    color: #54c3ea;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 3.4rem;
}

.info-text{
    color: white;
    font-size: 1.6rem;
    max-width: 80%;
    margin: 0;
}

.login-form-container{
    display: flex;
    flex-direction: column;
    min-height: 640px;
    max-height: 640px;
    width: 33.3%;
    min-width: 33.3%; /* Forceer de breedte */
    max-width: 33.3%;
    justify-content: center;
    align-items: center;
    text-align: center;
    /*background: linear-gradient(145deg, #ffffff, #e6e6e6);*/
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    overflow: hidden;
    /*padding: 2.5rem;*/
}

.login-form{
    /*min-width: 50%;*/
    width: 65%;
    max-width: 65%;
    margin: 0 auto;
}

.info-label{
    text-align: left;
    display: flex;
    margin-bottom: 5px;
    color: #555555;
}

.info-input{
    border: none;
    border-bottom: 2px solid #555555;
    padding: 12px 12px 12px 40px !important;
    margin-bottom: 0;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.info-input.input-error {
    border-bottom: 2px solid #d93025 !important;
    background: linear-gradient(145deg, #ffffff, #fff0f0);
}

.error-message {
    color: #d93025;
    font-size: 0.8rem;
    text-align: left;
    display: block;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 10px;
    line-height: 1.2;
    white-space: normal;      /* Laat tekst omwikkelen */
    overflow-wrap: break-word; /* Breekt lange woorden af */
    word-break: normal;
}

.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%; /* Start in het midden van de wrapper */
    transform: translateY(-50%); /* Trek de helft van de eigen hoogte terug voor perfecte centrering */
    color: #555555;
    font-size: 1.1rem;
    z-index: 10; /* Zorg dat het icoon bovenop de input ligt */
    pointer-events: none;
}

.forgot-password{
    margin-top: 5px;
    font-weight: 600;
    color: #555555;
    text-align: left;
}

.forgot-password:hover{
    text-decoration: underline;
    cursor: pointer;
    transform: scale(1.05);
}

.login-button{
    background-color: #54C3EA;
    color: white;
    padding: 7px;
    font-size: 1.2rem;
    border: 1px solid #54C3EA;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
}

.login-button:hover{
    background-color: white;
    color: #54C3EA;
    border: 1px solid #54C3EA;
    transition: 0.5s;
    cursor: pointer;
}

.no-account{
    margin-bottom: 5px;
    color: #555555;
}

.register-text{
    margin-top: 5px;
    font-weight: 700;
    color: #555555;
}

.register-text:hover{
    text-decoration: underline;
    cursor: pointer;
    transform: scale(1.05);
}

/*/ Css voor telefoons /*/
@media screen and (max-width: 1024px) {
    /* Zorg dat de body en html scrollen toestaan op mobiel */
    html, body {
        height: auto !important;
        overflow: hidden !important;
    }

    .login-page-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh; /* Zorg dat achtergrond wel vult, maar laat scrollen toe */
        overflow: hidden !important;
        padding: 40px 0; /* Ruimte aan boven- en onderkant */
        justify-content: flex-start; /* Start bovenaan ipv midden */
    }

    .login-info-container {
        /* Gebruik de mobiele afbeelding */
        background-image: url("../public/InlogRegistratieAchtergrond.png") !important;

        /* Maak de container kort */
        min-height: 300px !important;
        max-height: 300px !important;
        width: 90% !important;
        min-width: 90% !important;
        border-radius: 15px 15px 0 0;
        padding: 20px;
    }

    .login-form-container {
        width: 90% !important;
        min-width: 90% !important;
        min-height: auto !important; /* Laat formulier hoogte bepalen */
        max-height: none !important;
        border-radius: 0 0 15px 15px;
        padding: 40px 0;
        overflow: visible; /* Voorkom dat formulier intern scrolt */
    }

    .login-title {
        font-size: 2.2rem; /* Iets kleiner op mobiel */
        margin-bottom: 20px;
    }

    .login-form {
        width: 85%; /* Geef het formulier meer breedte op mobiel */
    }
}

/* --- Laptop / Kleine Desktops (1025px - 1440px) --- */
@media screen and (min-width: 1025px) and (max-width: 1600px) {
    html, body {
        height: auto !important;
        overflow: hidden !important;
    }

    .login-page-container{
        overflow: hidden !important;
    }

    .login-info-container,
    .login-form-container {
        width: 30% !important; /* Smaller dan de standaard 33.3% */
        min-width: 350px !important;
        min-height: 580px !important; /* Lager voor 13/15 inch schermen */
        max-height: 580px !important;
    }

    .login-title {
        font-size: 2.8rem !important; /* Iets kleiner */
        margin-bottom: 25px !important;
    }

    .login-form {
        width: 75% !important; /* Relatief iets breder binnen de smallere container */
        max-width: 75% !important;
    }

    .info-text {
        font-size: 1.3rem !important;
    }
}





