/* ---------------------------------------------------
   Algemene basis
--------------------------------------------------- */
* {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", Helvetica, Arial, sans-serif;
    font-weight: 300;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f2f2;
}

body.login-template {
    overflow: hidden;
}

/* ---------------------------------------------------
   Card layout (grote container)
--------------------------------------------------- */
.session {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0px 2px 6px -1px rgba(0,0,0,.12);
}

/* Linkerkant afbeelding */
.left {
    width: 220px;
    background-image: url("/images/login_img.jpg");
    background-size: cover;
    background-position: center;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Logo in left section */
.left .login-logo {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: filter 0.3s ease;
}

/* Logo with inverted colors */
.left .login-logo-invert {
    filter: invert(1) brightness(1.1) contrast(1.05) drop-shadow(0 2px 4px rgba(255,255,255,0.3));
}

/* Logo positioning */
.left {
    justify-content: center; /* Default: middle */
}

.left-top {
    justify-content: flex-start;
    padding-top: 30px;
}

.left-middle {
    justify-content: center;
}

.left-bottom {
    justify-content: flex-end;
    padding-bottom: 30px;
}

/* Mobile */
@media (max-width: 768px) {
    .session {
        max-width: 100%;
    }

    .left {
        width: 20px;
        background-position: center;
    }

    .log-in {
        padding: 30px 20px;
    }
}

/* ---------------------------------------------------
   Rechterkant login
--------------------------------------------------- */
.log-in {
    padding: 40px 30px;
    background: #fefefe;
    display: flex;
    flex-direction: column;
	width: 500px;
}

h4 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    opacity: .85;
    margin-bottom: 20px;
}

h4 span {
    font-weight: 700;
}

p {
    line-height: 155%;
    margin-bottom: 40px;
    font-size: 14px;
    color: #000;
    opacity: .65;
    font-weight: 400;
}

/* ---------------------------------------------------
   Login formulier (override layout)
--------------------------------------------------- */
.custom-login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Floating label wrapper */
.custom-login-form .floating-label {
    position: relative;
    margin-bottom: 25px;
}

/* Inputvelden */
.custom-login-form .floating-label input {
    font-size: 16px;
    padding: 20px 0;
    height: 56px;
    width: 100%;
    box-sizing: border-box;

    border: none;
    border-bottom: 1px solid rgba(0,0,0,.15);
    background: #fff;

    transition: all .3s ease;
    color: #000;
}

/* Placeholder zichtbaar */
.custom-login-form .floating-label input::placeholder {
    color: rgba(0,0,0,.45);
}

/* Label boven input */
.custom-login-form .floating-label label {
    position: absolute;
    left: 0;
    top: calc(50% - 22px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
    font-size: 13px;
    color: #444;
}

/* Label omhoog bij focus of waarde */
.custom-login-form .floating-label input:focus + label,
.custom-login-form .floating-label input:not(:placeholder-shown) + label {
    transform: translateY(-12px);
    opacity: .7;
}

/* ---------------------------------------------------
   Login button
--------------------------------------------------- */
.custom-login-form .btn-login {
    border-radius: 24px;
    padding: 15px 40px;
    background-color: #004987;
    color: #fff;
    font-size: 14px;
    border: none;
    transition: all .3s ease;
    cursor: pointer;
    margin-top: 5px;
    text-align: center;
}

.custom-login-form .btn-login:hover {
    transform: translateY(-3px);
}

/* ---------------------------------------------------
   SSO KNOPPEN (extraButtons)
--------------------------------------------------- */
.sso-wrapper {
    margin-top: 25px;
}

.btn-sso {
    width: 100%;
    padding: 15px 40px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: .3s;
    margin-bottom: 10px;

    background: #2F2F2F; /* Microsoft zwart */
    color: #fff;
}

.btn-sso:hover {
    transform: translateY(-3px);
}

/* ---------------------------------------------------
   Linkjes onder formulier
--------------------------------------------------- */
.login-links {
    margin-top: 20px;
}

.login-links a {
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    color: #004987;
    opacity: .75;
    transition: .2s;
}

.login-links a:hover {
    opacity: 1;
}

/* ---------------------------------------------------
   Focus styling
--------------------------------------------------- */
input:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
}

:focus-visible {
    outline: 2px solid rgba(0,73,135,.6);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0,73,135,.15);
}

/* Autofill fix */
input:-webkit-autofill {
    box-shadow: 0 0 0 1000px #fff inset !important;
}

/* Desktop max breedte */
@media (min-width: 769px) {
    .session {
        max-width: 720px;
    }
}


/* Joomla 5 alerts binnen de login */
.log-in joomla-alert {
    display: block;              /* heel belangrijk, anders gedraagt hij zich als inline element */
    margin-bottom: 15px;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    border-left: 4px solid transparent;
    background: #f5f5f5;
}

/* Binnenste content */
.log-in joomla-alert .alert-message {
    color: #333;
}

/* Close-knop rechtsboven */
.log-in joomla-alert .joomla-alert--close {
    background: transparent;
    border: 0;
    cursor: pointer;
    float: right;
    font-size: 16px;
    line-height: 1;
}

/* Typen meldingen kleuren */
.log-in joomla-alert[type="success"] {
    background: #e6f4ea;
    border-left-color: #1e8e3e;
}

.log-in joomla-alert[type="danger"],
.log-in joomla-alert[type="error"] {
    background: #fdecea;
    border-left-color: #d93025;
}

.log-in joomla-alert[type="warning"] {
    background: #fff7e6;
    border-left-color: #f9ab00;
}

.log-in joomla-alert[type="info"] {
    background: #e8f0fe;
    border-left-color: #1a73e8;
}

.log-in joomla-alert .alert-heading span.success,
.log-in joomla-alert .alert-heading span.danger {
    display: none !important;
}


/* Verberg de kopregel (icon + success/danger tekst) in de Joomla alerts */
#system-message-container joomla-alert .alert-heading {
    display: none !important;
}

/* Verberg ook de noscript-fallback meldingen (die tonen ook success/danger) */
#system-message-container noscript {
    display: none !important;
}


/* ---------------------------------------------
   WACHTWOORD VERGETEN (com-users reset)
--------------------------------------------- */

/* Container */
.com-users-reset {
    width: 100%;
}

/* Haal 'well' / Bootstrap look weg */
.com-users-reset__form {
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* De uitleg / legend bovenaan */
.com-users-reset__form legend {
    border: 0;
    padding: 0;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Groep rondom het veld */
.com-users-reset__form .control-group {
    margin-bottom: 20px;
}

/* Label boven input */
.com-users-reset__form .control-label {
    display: block;
    margin-bottom: 6px;
}

.com-users-reset__form .control-label label {
    font-size: 13px;
    color: #000;
    opacity: .7;
}

/* Input wrapper */
.com-users-reset__form .controls {
    width: 100%;
}

/* E-mailadres veld in dezelfde stijl als login inputs */
.com-users-reset__form .controls input[type="email"],
.com-users-reset__form .controls input[type="text"] {
    font-size: 16px;
    padding: 20px 0;
    height: 56px;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.15);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: all .3s ease;
    color: #000;
}

/* Focus state */
.com-users-reset__form .controls input[type="email"]:focus,
.com-users-reset__form .controls input[type="text"]:focus {
    border-bottom-color: rgb(182,157,230);
    outline: 0;
}

/* Verberg de grote rode foutstijl een beetje / maak subtieler */
.com-users-reset__form .has-danger .form-control,
.com-users-reset__form .form-control-danger {
    border-bottom-color: #d93025;
}

.com-users-reset__form .control-label .form-control-feedback {
    display: block;
    font-size: 12px;
    color: #d93025;
    margin-top: 4px;
}

/* Verstuur-knop in zelfde stijl als login-button */
.com-users-reset__submit .btn,
.com-users-reset__submit .btn-primary {
    border-radius: 24px;
    padding: 15px 40px;
    background-color: #004987;
    color: #fff;
    font-size: 14px;
    border: none;
    transition: all .3s ease;
    cursor: pointer;
}

.com-users-reset__submit .btn:hover,
.com-users-reset__submit .btn-primary:hover {
    transform: translateY(-3px);
}

.reset-intro p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 25px;
}

.custom-login-form #jform_email {
    /* krijgt automatisch dezelfde stijl als login inputs */
}

/* Logo links onderin */
.session .left {
    position: relative;
}

.session .left::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 25px;
    width: 150px; /* pas aan naar gewenste grootte */
    height: 60px; /* pas aan naar gewenste grootte */
    background-image: url('/images/logo/default.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left bottom;
    filter: brightness(0) invert(1); /* Zet zwart om naar wit */
}

/* Responsive: kleinere logo op mobile */
@media (max-width: 768px) {
    .session .left::after {
        width: 100px;
        height: 40px;
        bottom: 20px;
        left: 20px;
    }
}
