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;
    }
}

.register-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;
}

.register-title {
    color: #555555;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.register-info-container {
    background-image: url("../public/InlogRegistratieAchtergrond.png");
    background-size: cover;
    background-position: center;
    min-height: 750px;
    max-height: 750px;
    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);
}

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

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

.register-form-container {
    display: flex;
    flex-direction: column;
    min-height: 750px;
    max-height: 750px;
    width: 33.3%;
    min-width: 33.3%;
    max-width: 33.3%;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    overflow-y: auto; /* Zorg dat je kunt scrollen als het scherm klein is */
}

.register-form {
    width: 70%;
    max-width: 70%;
    margin: 0 auto;
}

.register-label {
    text-align: left;
    display: flex;
    margin-bottom: 3px;
    color: #555555;
    font-size: 0.9rem;
}

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

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

.register-error-message {
    color: #d93025;
    font-size: 0.75rem;
    text-align: left;
    display: block;
    width: 100%;
    min-height: 15px;
    margin-bottom: 8px;
    line-height: 1.1;
}

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

.register-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555555;
    font-size: 1rem;
    z-index: 10;
    pointer-events: none;
}

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

.register-button:hover {
    background-color: white;
    color: #54C3EA;
    border: 1px solid #54C3EA;
    transition: 0.3s;
}

.already-account {
    margin-bottom: 2px;
    color: #555555;
    font-size: 0.9rem;
}

.login-link {
    font-weight: 700;
    color: #555555;
    cursor: pointer;
    margin-top: 0;
}

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

@media screen and (max-width: 1024px) {
    /* Zorg dat scrollen overal is toegestaan */
    html, body {
        height: auto !important;
        overflow: visible !important;
    }

    .register-page-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
        padding: 40px 0;
        justify-content: flex-start;
    }

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

        /* Compacte hoogte voor mobiel */
        min-height: 300px !important;
        max-height: 300px !important;
        width: 90% !important;
        min-width: 90% !important;
        border-radius: 15px 15px 0 0;
        padding: 20px;
    }

    .register-form-container {
        width: 90% !important;
        min-width: 90% !important;
        min-height: auto !important; /* Laat de vele invoervelden de hoogte bepalen */
        max-height: none !important;
        border-radius: 0 0 15px 15px;
        padding: 40px 0;
        overflow: visible;
    }

    .register-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .register-form {
        width: 85%; /* Iets breder voor makkelijker typen op mobiel */
    }
}

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

    .register-page-container {
        overflow: hidden !important;
        /* Dit zorgt voor de ruimte rondom de div zodat hij niet tegen de randen plakt */
        padding: 40px !important;
        box-sizing: border-box;
    }

    .register-info-container,
    .register-form-container {
        /* Breedte blijft ongewijzigd (33.3%), alleen de hoogte gaat omlaag */
        width: 33.3% !important;
        min-width: 380px !important;

        /* De div wordt een stuk minder hoog */
        min-height: 600px !important;
        max-height: 600px !important;
    }

    .register-title {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }

    .register-form {
        /* Formulier vult de container goed op */
        width: 75% !important;
        max-width: 75% !important;
    }

    .register-label {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
    }

    .register-input {
        /* Iets minder padding binnen de velden om alles in de 600px hoogte te proppen */
        padding: 7px 10px 7px 40px !important;
    }

    .register-button {
        padding: 8px !important;
        margin-top: 10px !important;
    }

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