/* Login pagina styling */

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Linker sectie met afbeelding */
.login-image-section {
    width: 60%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Rechter sectie met login formulier */
.login-form-section {
    width: 40%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Logo styling */
.login-logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 20px;
}

.login-logo .logo {
    max-height: 32px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Login formulier centreren */
.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    max-width: 500px;
    margin: 0 60px;
}

.login-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #1e2a4e;
    margin: 0 0 16px 0;
    text-align: center;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 1.1em;
    color: #6b7280;
    margin: 0 0 40px 0;
    text-align: center;
    line-height: 1.5;
}

/* Formulier styling */
.login-form-content {
    width: 100%;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: #1e2a4e;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Lato', Arial, sans-serif;
    background-color: #ffffff;
    color: #1e2a4e;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #ea5b1b;
}

.form-input.error {
    border-color: #dc2626;
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px); }
    20% { transform: translateX(10px); }
    30% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    50% { transform: translateX(-8px); }
    60% { transform: translateX(8px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-2px); }
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Login opties */
.login-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-option-btn {
    width: 100%;
    padding: 10px 24px;
    background-color: #1e2a4e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Lato', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.login-option-btn:hover {
    background-color: #16203a;
    transform: translateY(-1px);
}

.login-option-btn:active {
    transform: translateY(0);
}

.login2-option-btn {
    width: 100%;
    padding: 10px 24px;
    background-color: #e5e7eb;
    color: #6b7280;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Lato', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.login2-option-btn:hover {
    background-color: #d1d5db;
    transform: translateY(-1px);
}

.login2-option-btn:active {
    transform: translateY(0);
}

.btn-email {
    font-size: 1em;

    font-weight: 500;
}

.btn-text {
    font-size: 1em;
    font-weight: 500;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.login-divider span {
    padding: 0 16px;
    color: #6b7280;
    font-size: 0.9em;
    background-color: #ffffff;
}

/* Email input formulier */
.email-input-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    max-width: 500px;
    margin: 0 60px;
}

/* Button group voor terug en doorgaan knoppen */
.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.back-button {
    flex: 1;
    padding: 10px 24px;
    background-color: #e5e7eb;
    color: #6b7280;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Lato', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.back-button:hover {
    background-color: #d1d5db;
    transform: translateY(-1px);
}

.back-button:active {
    transform: translateY(0);
}

/* Login knop */
.login-button {
    flex: 1;
    padding: 10px 24px;
    background-color: #1e2a4e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Lato', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.login-button:hover {
    background-color: #16203a;
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

/* Hint tekst */
.login-hint {
    font-size: 0.9em;
    color: #6b7280;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Pop-up styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: #fef3f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-icon svg {
    width: 32px;
    height: 32px;
    color: #dc2626;
}

.popup-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #1e2a4e;
    margin: 0 0 12px 0;
}

.popup-message {
    font-size: 1em;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Verificatie formulier */
.verification-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    max-width: 500px;
    margin: 0 60px;
}

.verification-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.verification-input {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background-color: #ffffff;
    color: #1e2a4e;
    transition: border-color 0.2s ease;
    font-family: 'Lato', Arial, sans-serif;
}

.verification-input:focus {
    outline: none;
    border-color: #ea5b1b;
}

.verification-input.filled {
    border-color: #ea5b1b;
    background-color: #fef7f4;
}

.verification-hint {
    font-size: 0.9em;
    color: #6b7280;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Progressive image loading styling */
.login-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.login-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    filter: blur(10px);
    opacity: 0.8;
}

.login-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, filter 0.3s ease-in-out;
    filter: blur(3px);
}

.login-image.loaded {
    opacity: 1;
}

/* Mobiele layout voor schermen kleiner dan 1200px */
@media (max-width: 1200px) {
    html, body {
        overflow: hidden;
        height: 100%;
        width: 100%;
        position: fixed;
    }

    .login-container {
        flex-direction: column;
        position: relative;
        height: 100vh;
        overflow: hidden;
    }

    /* Login formulier sectie gecentreerd in bovenste 60% */
    .login-form-section {
        position: relative;
        width: 100%;
        height: 60vh;
        min-height: 60vh;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        order: 1;
        overflow-y: auto;
    }

    /* Logo in logincontainer bovenaan - binnen de witte container */
    .login-logo {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
        z-index: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        border-radius: 0;
    }

    .login-logo .logo {
        max-height: 40px;
        max-width: 180px;
        padding: 20px 0;
    }

    /* Login formulier gecentreerd */
    .login-form {
        flex: none;
        height: auto;
        background-color: rgba(255, 255, 255, 1);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 20px 30px 40px 30px;
        margin: 0 auto;
        max-width: 450px;
        width: calc(100% - 40px);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Email input formulier gecentreerd */
    .email-input-form {
        flex: none;
        height: auto;
        background-color: rgba(255, 255, 255, 1);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 20px 30px 40px 30px;
        margin: 0 auto;
        max-width: 450px;
        width: calc(100% - 40px);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Verificatie formulier gecentreerd */
    .verification-form {
        flex: none;
        height: auto;
        background-color: rgba(255, 255, 255, 1);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 20px 30px 40px 30px;
        margin: 0 auto;
        max-width: 450px;
        width: calc(100% - 40px);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Afbeelding sectie verbergen op mobiel */
    .login-image-section {
        display: none;
    }

    /* Aanpassingen voor kleinere schermen */
    .login-title {
        font-size: 1.8em;
        margin-bottom: 10px;
        text-align: left;
    }

    .login-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
        text-align: left;
    }

    .form-input {
        padding: 12px 20px;
        font-size: 1em;
    }

    .login-option-btn,
    .login2-option-btn {
        padding: 12px 24px;
        font-size: 1em;
    }

    .login-button,
    .back-button {
        padding: 12px 24px;
        font-size: 1em;
    }

    /* Verificatie inputs aanpassen voor mobiel */
    .verification-inputs {
        width: 100%;
        gap: 4px;
        justify-content: space-between;
        padding: 0;
        box-sizing: border-box;
    }

    .verification-input {
        flex: 1 1 0;
        min-width: 0;
        width: 0;
        height: clamp(45px, 12vw, 50px);
        font-size: clamp(0.9em, 3.5vw, 1.2em);
        box-sizing: border-box;
        padding: 0;
    }
}
