/* =================================
   CSS VARIABELEN - Pas deze aan voor styling
   ================================= */
:root {
    /* Bestaande kleuren */
    --bs-primary-color: #FF007B;
    --bs-secondary-color: #000000;
    --bs-grey-color: #F8F8F8;
    
    /* Modal specifieke variabelen */
    --modal-overlay-bg: rgba(0, 0, 0, 0.6);
    --modal-bg: #ffffff;
    --modal-border-radius: 5px;
    --modal-max-width: 480px;
    --modal-padding: 2rem;
    --modal-padding-mobile: 1.5rem;
    --modal-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    
    /* Tekst kleuren */
    --text-primary: var(--bs-secondary-color);
    --text-secondary: #666666;
    --text-error: #dc3545;
    --text-success: #005b15;
    --text-info: #ff007b;
    
    /* Input velden */
    --input-bg: var(--bs-grey-color);
    --input-border: #dddddd;
    --input-border-focus: var(--bs-primary-color);
    --input-border-radius: 8px;
    --input-padding: 0.75rem 1rem;
    --input-font-size: 1rem;
    
    /* Buttons */
    --button-primary-bg: var(--bs-primary-color);
    --button-primary-hover: #e6006d;
    --button-secondary-bg: var(--bs-grey-color);
    --button-secondary-hover: #e0e0e0;
    --button-text-primary: #ffffff;
    --button-text-secondary: var(--bs-secondary-color);
    --button-border-radius: 8px;
    --button-padding: 0.75rem 1.5rem;
    --button-font-size: 1rem;
    --button-font-weight: 600;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Z-index */
    --modal-z-index: 999999;
}

/* =================================
   MODAL BASE STYLES
   ================================= */
.bsd25__login,
.bsd25_login_login_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--modal-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--modal-z-index);
    padding: var(--spacing-md);
    overflow-y: auto;
    z-index: 99999999999999999999999999999999;
    backdrop-filter: blur(20px);
}

/* Modal content containers */
.bsd25_login_detail_content,
.bsd25_login_login_form {
    background: var(--modal-bg);
    border-radius: var(--modal-border-radius);
    box-shadow: var(--modal-shadow);
    max-width: var(--modal-max-width);
    width: 100%;
    padding: var(--modal-padding);
    position: relative;
    animation: modalFadeIn var(--transition-speed) ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   TITELS
   ================================= */
.bsd25_login_login_title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-lg) 0;
    text-align: center;
    font-family: 'headfontWide';
    text-transform: uppercase;
}

.bsd25_login_detail_content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-md) 0;
    text-align: center;
}

/* =================================
   MELDINGEN (Error, Info, Success)
   ================================= */
.bsd25_login_detail_section.bsd25_login_error,
.bsd25_login_login_error {
    background: #ff007b;
    color: white;
    /* border: 3px solid #cd2074; */
    border-radius: var(--input-border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: 01rem;
    font-family: 'mediumfont';
}

.bsd25_login_detail_section.bsd25_login_info,
.bsd25_login_login_info {
    background: #fff2f8;
    color: #ff007b;
    border: 3px solid #ff007b;
    border-radius: var(--input-border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'headfontSpecial';
}

.bsd25_login_detail_section.bsd25_login_fields h3 {
    color: var(--text-success);
    font-family: 'headfontWide';
}

/* =================================
   FORM SECTIONS
   ================================= */
.bsd25_login_detail_section,
.bsd25_login_login_step1,
.bsd25_login_login_step2 {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* =================================
   INPUT VELDEN
   ================================= */
.bsd25_login_detail_field,
.bsd25_login_login_field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.bsd25_login_detail_field label,
.bsd25_login_login_field label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'headfontSpecial';
    font-size: 17px;
}

.bsd25_login_detail_field input[type="text"],
.bsd25_login_detail_field input[type="email"],
.bsd25_login_detail_field input[type="password"],
.bsd25_login_login_field input[type="text"],
.bsd25_login_login_field input[type="email"],
.bsd25_login_login_field input[type="password"] {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--input-border-radius);
    padding: var(--input-padding);
    font-size: var(--input-font-size);
    color: var(--text-primary);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    width: 100%;
}

.bsd25_login_detail_field input:focus,
.bsd25_login_login_field input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(255, 0, 123, 0.1);
}

/* Input met button (genereer wachtwoord) */
.bsd25_login_detail_field {
    position: relative;
}

.bsd25_login_detail_field input[type="text"] + button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--button-primary-bg);
    color: var(--button-text-primary);
    border: none;
    border-radius: calc(var(--button-border-radius) / 1.5);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: var(--button-font-weight);
    cursor: pointer;
    transition: background var(--transition-speed);
}

.bsd25_login_detail_field input[type="text"] + button:hover {
    background: var(--button-primary-hover);
}

/* Checkbox field */
.bsd25_login_login_field_checkbox {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
}

.bsd25_login_login_field_checkbox input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--bs-primary-color);
}

.bsd25_login_login_field_checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

/* =================================
   BUTTONS
   ================================= */
button,
.bsd25_login_detail_field button,
.bsd25_login_login_field button {
    background: var(--button-primary-bg);
    color: var(--button-text-primary);
    border: none;
    border-radius: var(--button-border-radius);
    padding: var(--button-padding);
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    cursor: pointer;
    transition: background var(--transition-speed), transform 0.1s;
    width: 100%;
    font-family: headFontWide;
}

button:hover:not(:disabled) {
    background: var(--button-primary-hover);
    transform: translateY(-1px);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Secondary button style */
button[style*="background-color: var(--gray-100)"],
.bsd25_login_login_field button[type="button"] {
    background: var(--button-secondary-bg) !important;
    color: var(--button-text-secondary) !important;
    border: 1px solid var(--input-border);
}

button[style*="background-color: var(--gray-100)"]:hover:not(:disabled),
.bsd25_login_login_field button[type="button"]:hover:not(:disabled) {
    background: var(--button-secondary-hover) !important;
}

/* =================================
   LINKS
   ================================= */
a,
.bsd25_login_detail_content a,
.bsd25_login_login_form a {
    color: var(--bs-primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--button-primary-hover);
    text-decoration: underline;
}

/* Tekst met links */
.bsd25_login_login_form p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
    font-family: 'mediumfont';
}

.bsd25_login_detail_section p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: var(--spacing-md) 0;
    text-align: center;
}

/* =================================
   LOADER
   ================================= */
.bsd25__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    backdrop-filter: brightness(0.8);
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bs-grey-color);
    border-bottom-color: var(--bs-primary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading tekst */
.bsd25_login_detail_section p {
    text-align: center;
    font-family: 'headfontSpecial';
    font-size: 20px;
}
.bsd25_login_detail_section p > a{
    font-family: 'headfont';
}

.bsd25_login_detail_field.login_button_next {
    display: grid;
    grid-template-columns: 1fr 120px!important;
    grid-gap: 20px;
}

.bsd25_login_detail_field.login_button_next > button {
    position: relative!important;
    margin: 0px!important;
    width: auto!important;
    background-color: black!important;
}

/* =================================
   RESPONSIVE STYLES
   ================================= */
@media (max-width: 768px) {
    .bsd25__login,
    .bsd25_login_login_wrapper {
        padding: var(--spacing-sm);
    }
    
    .bsd25_login_detail_content,
    .bsd25_login_login_form {
        padding: var(--modal-padding-mobile);
        max-width: 100%;
    }
    
    .bsd25_login_login_title {
        font-size: 1.5rem;
    }
    
    .bsd25_login_detail_content h3 {
        font-size: 1.25rem;
    }
    
    .bsd25_login_detail_field input[type="text"] + button {
        position: static;
        transform: none;
        width: 100%;
        margin-top: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .bsd25_login_detail_content,
    .bsd25_login_login_form {
        padding: var(--spacing-lg);
    }
    
    .bsd25_login_login_title {
        font-size: 1.25rem;
    }
    
    button,
    .bsd25_login_detail_field button,
    .bsd25_login_login_field button {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* =================================
   UTILITIES
   ================================= */
/* Verberg elementen met v-show="!hidefields" */
[v-show="!hidefields"] {
    display: none;
}
p.bsd25__error{
    color: var(--text-error);
    padding: 20px;
    font-family: 'mediumfont';
    background-color: white!important;
}
.bsd_welkom {
    text-align: center;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    min-height: 390px;
}

.bsd_welkom h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-lg) 0;
    font-family: 'headfontWide';
}

.bsd_welkom p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 0 var(--spacing-xl) 0;
    font-family: 'mediumfont';
}

.bsd_welkom .bs_btn.bs_primary {
    background: var(--button-primary-bg);
    color: var(--button-text-primary);
    border: none;
    border-radius: var(--button-border-radius);
    padding: var(--button-padding);
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    cursor: pointer;
    transition: background var(--transition-speed), transform 0.1s;
    font-family: 'headfontWide';
}

.bsd_welkom .bs_btn.bs_primary:hover {
    background: var(--button-primary-hover);
    transform: translateY(-1px);
}

.bsd_welkom .bs_btn.bs_primary:active {
    transform: translateY(0);
}

.bsd_welkom .bs_btn.bs_primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 123, 0.1);
}
