/**
 * SmartLabel Academy - Shared Login Modal Styling
 * Version: 1.0.0
 * Deze stylesheet wordt gebruikt door meerdere plugins voor consistente login modal styling
 */

/* ============================================
   Custom Login Modal Styling - 2 Koloms Layout
   ============================================ */
#smartlabel-login-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    backdrop-filter: blur(10px);
}

#smartlabel-login-modal-wrap {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    z-index: 99999;
    
    /* SmartLabel Dark Theme */
    background: linear-gradient(135deg, #0826c86b 0%, #1a22a4 100%);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #ffffff;
    overflow: hidden;
}

/* Close button - buiten de grid, rechtsboven */
#smartlabel-close-login {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}
#smartlabel-close-login:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.5);
}

/* Grid Layout - 2 kolommen */
#smartlabel-login-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

/* Linker kolom: Login formulier */
#smartlabel-login-content {
    padding: 50px 50px 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#smartlabel-login-content h2 {
    margin: 0 0 30px 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
}

/* Formulier styling */
#smartlabel-login-content .login-username,
#smartlabel-login-content .login-password {
    margin-bottom: 20px;
}

#smartlabel-login-content .login-username label,
#smartlabel-login-content .login-password label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

#smartlabel-login-content .login-username input,
#smartlabel-login-content .login-password input {
    width: 100%;
    padding: 14px 18px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
}

#smartlabel-login-content .login-username input:focus,
#smartlabel-login-content .login-password input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

#smartlabel-login-content .login-remember {
    margin: 15px 0 25px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
}

#smartlabel-login-content .login-remember input {
    margin-right: 8px;
}

#smartlabel-login-content .login-submit {
    margin-bottom: 20px;
}

#smartlabel-login-content .login-submit input {
    width: 100%;
    display: block !important;
    padding: 16px 40px !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #3b3ef6 0%, #004aed 100%) !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#smartlabel-login-content .login-submit input:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5) !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.smartlabel-register-link {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.smartlabel-register-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.smartlabel-register-link a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Rechter kolom: Visual met afbeelding */
#smartlabel-login-visual {
    background-image: url('https://smartlabel.academy/wp-content/uploads/2025/08/excited-diverse-female-producer-with-channel-mixer-2025-04-03-20-24-39-utc.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

/* Overlay voor leesbaarheid */
#smartlabel-login-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.85) 0%, rgba(15, 20, 40, 0.2) 100%);
}

.smartlabel-login-visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.smartlabel-login-visual-content .smartlabel-login-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.smartlabel-login-visual-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.smartlabel-login-visual-content p {
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    #smartlabel-login-modal-wrap {
        width: 95%;
        max-width: none;
        border-radius: 24px;
    }
    
    #smartlabel-login-modal-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    #smartlabel-login-content {
        padding: 40px 30px 30px 30px;
    }
    
    #smartlabel-login-content h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    /* Rechter kolom wordt onderaan op mobile */
    #smartlabel-login-visual {
        min-height: 200px;
        padding: 30px;
    }
    
    .smartlabel-login-visual-content .smartlabel-login-logo {
        max-width: 200px;
        margin-bottom: 15px;
    }
    
    .smartlabel-login-visual-content h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .smartlabel-login-visual-content p {
        font-size: 16px;
    }
    
    #smartlabel-close-login {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
