﻿/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #FFFFFF;
    font-family: "Asap", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}
.banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    animation: fadeIn 1s ease-in-out;
}

/* Tablet */
@media (max-width: 992px) {
    .banner-image {
        max-height: 320px;
        margin-bottom: 1.2rem;
    }
}

/* Mobiel */
@media (max-width: 600px) {
    .banner-image {
        max-height: 240px;
        margin-bottom: 1rem;
    }
}

/* Mobiel */
@media (max-width: 600px) {
    .banner-image {
        max-height: 280px;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .login-button:hover {
        background-color: #43a047;
        transform: translateY(-2px);
    }

/* Layout */
.login-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, #FFFFFF 0%, #E8F5E9 40%, #D6F0DD 100%);
}
.banner-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.login-header {
    text-align: center;
    padding: 32px 16px 16px;
}

.logo {
    height: 72px;
    margin-bottom: 8px;
}

.tagline {
    font-size: 18px;
    color: #6BBF72;
    margin: 0;
    font-weight: 600;
}

.login-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 24px 20px 28px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    animation: card-in 0.4s ease-out;
}

.login-title {
    margin: 0 0 16px;
    font-size: 22px;
    text-align: center;
    color: #2E7D32;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    margin-bottom: 4px;
    color: #4A4A4A;
}

.tekstbox {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #CDE8D4;
    border-radius: 8px;
    background-color: #FFFFFF;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

    .tekstbox:focus {
        outline: none;
        border-color: #6BBF72;
        box-shadow: 0 0 0 3px rgba(107, 191, 114, 0.25);
        background-color: #FAFFFB;
    }

/* Password */
.password-group {
    position: relative;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .password-toggle:hover {
        opacity: 1;
    }

    .password-toggle svg {
        width: 100%;
        height: 100%;
        fill: #6BBF72;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* OOG OPEN */
    .password-toggle .icon-eye {
        display: block;
    }

    /* OOG DICHT */
    .password-toggle .icon-eye-off {
        display: none;
    }

    /* Wanneer actief (paswoord zichtbaar) */
    .password-toggle.is-active .icon-eye {
        display: none;
    }

    .password-toggle.is-active .icon-eye-off {
        display: block;
    }
/* Button */
.form-actions {
    margin-top: 10px;
}

.knop.login-button {
    width: 100%;
    padding: 11px;
    font-size: 16px;
    background: linear-gradient(90deg, #6BBF72, #4CAF50);
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-position 0.2s ease;
    background-size: 150% 100%;
}

    .knop.login-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(76, 175, 80, 0.35);
        background-position: 100% 0;
    }

    .knop.login-button:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
    }

    .knop.login-button:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.35);
    }

    .knop.login-button.is-loading {
        position: relative;
        cursor: default;
        opacity: 0.85;
    }

        .knop.login-button.is-loading::after {
            content: "";
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.7);
            border-top-color: #FFFFFF;
            animation: spin 0.7s linear infinite;
        }

/* Validation & messages */
.validation-summary {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background-color: #FFF8E1;
    border: 1px solid #FFE082;
    color: #795548;
    font-size: 13px;
}

    .validation-summary ul {
        margin: 4px 0 0;
        padding-left: 18px;
    }

.field-error {
    margin-top: 4px;
    font-size: 12px;
    color: #D32F2F;
}

.error-message,
.info-message {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    max-width: 100%;
}

.error-message {
    color: #D32F2F;
}

.info-message {
    color: #333;
}

/* Shake animatie bij fout */
.shake {
    animation: shake 0.35s ease-in-out;
}

/* Footer */
.login-footer {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #777;
}

.footer-text {
    margin: 0;
}

/* Animaties */
@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .logo {
        height: 56px;
    }

    .login-card {
        padding: 20px 16px 24px;
        border-radius: 14px;
    }

    .login-title {
        font-size: 20px;
    }
}
.login-card a.login-button {
    display: block;
    text-align: center;
    margin-top: 12px;
}
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-eye {
    width: 22px;
    height: 22px;
    display: none;
    color: #444;
}

.eye-closed {
    display: block;
}

.password-toggle.is-active .eye-closed {
    display: none;
}

.password-toggle.is-active .eye-open {
    display: block;
}