/* =====================================================
   LMS LOGIN & AUTHENTICATION STYLES
   Consistent met de rest van de LMS plugin
   ===================================================== */

/* Login Container - volledige pagina */
.lms-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    padding: 3%;
    font-family: "Inter", sans-serif;
}

/* Login Box - witte kaart stijl zoals rest van plugin */
.lms-login-box {
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 4%;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lms-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.lms-login-header h1 {
    color: #00407A;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.lms-login-header p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Form Styling */
.lms-form-group {
    margin-bottom: 20px;
}

.lms-form-group label {
    display: block;
    color: #00407A;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.lms-input
 {
    width: 100%;
    padding: 12px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    transition: all 0.2s;
    box-sizing: border-box;
}

.lms-input:focus {
    outline: none;
    border-color: #52BDEC;
    box-shadow: 0 0 0 3px rgba(82, 189, 236, 0.1);
}

/* Remember me & Forgot password row */
.lms-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.lms-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0;
}

.lms-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.lms-forgot-password-link {
    color: #52BDEC;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.lms-forgot-password-link:hover {
    color: #00407A;
    text-decoration: underline;
}

/* Buttons - matching plugin style */
.lms-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: "Inter", sans-serif;
}

.lms-btn-primary {
    background-color: #52BDEC;
    color: white;
    border: 1px solid #52BDEC;
}

.lms-btn-primary:hover:not(:disabled) {
    background-color: transparent;
    color: #52BDEC;
}

.lms-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc !important;
    border-color: #ccc !important;
}

.lms-btn-secondary {
    background-color: transparent;
    color: #52BDEC;
    border: 1px solid #52BDEC;
}

.lms-btn-secondary:hover:not(:disabled) {
    background-color: #52BDEC;
    color: white;
}

.lms-btn-block {
    width: 100%;
}

.lms-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lms-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages - Success & Error */
.lms-form-message {
    padding: 12px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: none;
}

.lms-form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.lms-form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Footer */
.lms-login-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.lms-login-footer p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Modal Styles - Wachtwoord Vergeten */
.lms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lms-modal-content {
    background: white;
    border-radius: 25px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lms-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lms-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #00407A;
    font-weight: bold;
}

.lms-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.lms-modal-close:hover {
    background: #f3f4f6;
    color: #00407A;
}

.lms-modal-content .lms-form {
    padding: 24px;
}

.lms-modal-content .lms-form-group small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.85rem;
}

.lms-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.lms-modal-actions .lms-btn {
    min-width: 120px;
}

/* Logout menu item */
.lms-logout-menu-item {
    position: relative;
}

.lms-logout-link {
    color: #dc2626 !important;
    font-weight: 600;
}

.lms-logout-link:hover {
    color: #991b1b !important;
}

/* Loading overlay voor bij logout */
.lms-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.lms-loading-overlay .lms-spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* Access denied bericht styling */
.lms-access-denied {
    max-width: 600px;
    margin: 80px auto;
    padding: 10%;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.lms-access-denied h1 {
    color: #00407A;
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: bold;
}

.lms-access-denied p {
    color: #4b5563;
    margin-bottom: 24px;
}

.lms-access-denied .lms-btn {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lms-login-container {
        padding: 20px;
    }
    
    .lms-login-box {
        padding: 32px 24px;
    }
    
    .lms-login-header h1 {
        font-size: 1.5rem;
    }
    
    .lms-remember-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .lms-modal-actions {
        flex-direction: column-reverse;
    }
    
    .lms-modal-actions .lms-btn {
        width: 100%;
    }
}

/* Extra styling voor consistency met plugin */
.lms-login-box * {
    box-sizing: border-box;
}

/* Scrollbar styling zoals in plugin */
.lms-modal-content::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #F5F5F5;
}

.lms-modal-content::-webkit-scrollbar {
    width: 10px;
    background-color: #F5F5F5;
    border-radius: 10px;
}

.lms-modal-content::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #D8D8D8;
}

/* Hover state voor inputs */
.lms-input:hover {
    border-color: #52BDEC;
}

/* Focus state voor checkbox */
.lms-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid #52BDEC;
    outline-offset: 2px;
}

/* Logo styling als je het wilt toevoegen */
.lms-login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.lms-login-logo img {
    max-height: 80px;
    width: auto;
}